Giter Club home page Giter Club logo

Comments (4)

wolfram77 avatar wolfram77 commented on August 15, 2024

This is more than a year later, but I am getting a similar error.

Reading edge list from '/home/subhajit.sahu/Data/web-Stanford.mtx.tsv'.
Error while creating network: For each node, corresponding elements of neighbors array must not include duplicate values.

I am using graphs in Matrix Market format from the SuiteSparse Matrix collection, and converting to a TSV file with a script. Is this because some vertex u have duplicate edges v (do such duplicate edges exist in the dataset), or is it due to self-loops?

from networkanalysis.

vtraag avatar vtraag commented on August 15, 2024

I get this error: "Error while creating network: Elements of neighbors array must have non-negative values."

Could you please help out? Thank you!

The message is reasonably self-explanatory I think? It means that for some reason your input file contained a negative value. I'm not sure what's wrong with the input file, but you'd probably want to double check.

P.S. Apologies for the late reply!

from networkanalysis.

vtraag avatar vtraag commented on August 15, 2024

Thanks for bumping the issue @wolfram77 !

I am getting a similar error.

Reading edge list from '/home/subhajit.sahu/Data/web-Stanford.mtx.tsv'.
Error while creating network: For each node, corresponding elements of neighbors array must not include duplicate values.

Well, it's actually a quite distinct error. Indeed, for some reason your input file contains duplicate values. It's not about self-loops. Do note that the input is expecting only one pair of nodes (unless you provide a pre-sorted edge list, see --sorted-edge-list), so if it already contains the link 0 1 you shouldn't also have 1 0 in there.

from networkanalysis.

wolfram77 avatar wolfram77 commented on August 15, 2024

Oh, the web-Stanford is a directed graph. I will convert it to an undirected one and try again. Thanks.

from networkanalysis.

Related Issues (13)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.