Giter Site home page Giter Site logo

multinetx's People

Contributors

maciejkolanski avatar nkoub 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  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  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  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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

multinetx's Issues

multilayer network using erdos_renyi_graph

Hello Sir,

I am facing problem while running the below given code of first example given for creating multilayer network. I have successfully installed the library.
import multinetx as mx
import numpy as np
g1 = mx.erdos_renyi_graph(100,0.5,seed=218)
g2 = mx.erdos_renyi_graph(100,0.6,seed=211)
g3 = mx.erdos_renyi_graph(100,0.7,seed=208)
adj_block = mx.lil_matrix(np.zeros((N3,N3)))

The error while runnnng above code is
g1 = mx.generators.erdos_renyi_graph(100,0.5,seed=218)

AttributeError: module 'multinetx' has no attribute 'generators'

Please help.

Issue with "projection" in utilities.py

I am using the projection function on a MultilayerGraph object so that I can use the NetworkX modularity function in my code. In Python 3, has_key has been removed. As a result, line 179 (if multinet.edges.get(e).has_key("weight") and edge_weight:) throws an attribute error even though multinet.edges.get(e) does in fact yield a dictionary object, which in my case has weight as a key. Perhaps this part could be rewritten so that it is up to date with Python 3 conventions?

edit error in get_position

in base/draw.py line 71:
it should be base_pos = nx.layout.circular_layout(G.get_layer(0))
not base_pos = nx.layout.circylar_layout(G.get_layer(0))

keep original node labels after Multilayergraph

Hi Nikos,

Thanks for the awesome package.
I am trying to learn this tool using my own edgelists as input layers.
Here's my test:

cluster1 = nx.Graph()
cluster1.add_edges_from([
    ("A", "B"),
    ("A", "C"),
    ("B", "C")])
cluster2 = nx.Graph()
cluster2.add_edges_from([
    ("D", "E"),
    ("F", "E"),
    ("D", "F")])
clusts = mx.MultilayerGraph(list_of_layers=[cluster1,cluster1])

fig = plt.figure(figsize=(15,5))
ax1 = fig.add_subplot(121)
ax1.axis('off')
mx.draw_networkx(clusts,
                # pos=pos1,
                 ax=ax1,
                # labels={},
                 with_labels=True)
plt.show()

However I noticed the node labels converted into integers after mx.MultilayerGraph()
image

How can I label the nodes with original names as "A", "B", "C", et al.

Thank you very much!

Best, Tao

I/O mechanisms?

Loading and Saving (outside of .pkl) and to maintain the class structure of multinetx vs. fall back on networkx? @nkoub

What is meaning of this parameter?

I want to draw a Multi layer network by using Python. The expected graph likes this:
oky9v
This is my command:
default
mst_pearson,mst_kendall,mst_tail are my original networks, I want to use them to establish a three-layers multilayer network. But the error is that:
image
What is that error mean? How could I fix it?

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.