Git Product home page Git Product logo

network-portrait-divergence's People

Contributors

bagrow avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

network-portrait-divergence's Issues

C++ does not support directed or weighted graphs

The C++ code (B_matrix.cpp) assumes the edgelist it reads is undirected and unweighted even if that is not the user's intent. I've updated portrait_divergence.py to prevent calling both C++ (--cpp) and directed/weighted options. It would be nice to support directed/weoghted graphs with the C++.

Thanks @Mattia10427725.

Clarification on Network Portrait

Hi, this is regarding Fig 1 in your publication.

I am trying to properly understand the Portraits, but am feeling lost.

  1. The left hand side Y-axis is the "path length", so
  2. Row 0 encodes the number of nodes. Next is where it gets confusing:
  3. The bottom X-axis is also labelled as the "number of nodes k"? Does this exclude row 0, which is "doing its own thing"?
  4. In the examples, it's either at 0 or 1 position according to the bottom axis, while the networks above clearly show >1 nodes for each example. But they're all bright yellow,
  5. So it looks like the blue-yellow gradient legend on the right represents the number of nodes?
  6. In that case, what does the bottom X-axis "number of nodes k" refer to?

Clarification on usage

  1. ReadMe's Basic example:
    python portrait_divergence.py data/net1.edgelist data/net2.edgelist

Is that a file type with the extension literally being .edgelist?
If no, what's the exact expected format? TSV/CSV? Header or no header?

  1. Example files in the Data folder aren't like any edge lists I've seen before. I'm used to files like
    "String1" "String2" "EdgeWeight", but the example files are "Number1" "Number2" "{}"?

  2. After running the above code, is one number the only output? Will the script make a new folder and write output files, with the Portrait diagrams, etc?

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.