Questions tagged [ipycytoscape]

14 questions
1
vote
1 answer

finding multiple paths in a DIRECTED networkx graph

I have a directed graph as follows: I created it with networkx and plotted it with ipycytoscape. The graph is a directed graph. All the edges have One and only one direction. The question is how to find from a particular node all the paths between…
JFerro
  • 3,203
  • 7
  • 35
  • 88
1
vote
1 answer

Network customization using ipycytoscape

I am using ipycytoscape for building networks, but it is not clear to me how to let node size being dependent on node's degree and add labels to each node. My network has two columns, one for Nodes and one for Target. Data Nodes Target A …
V_sqrt
  • 537
  • 8
  • 28
1
vote
1 answer

Is it possible to set the concentric function in ipycytoscape?

In the concentric layout in cytoscape.js, it is possible to set which "layer" of the circle the nodes are in through the concentric variable of the layout: concentric: function( node ){ return node.data("rank"); } Is there a similar…
durian
  • 83
  • 7
1
vote
1 answer

ipycytoscape & networkx interchange of objects

From the ipycytoscape documentation I can see the following: import ipycytoscape as cs from ipycytoscape import * import networkx as nx # === create custom node class (inherits from cytoscape node class) class CustomNode(cs.Node): def…
JFerro
  • 3,203
  • 7
  • 35
  • 88
0
votes
1 answer

cytoscape plots no not showing up in juypyter: Failed to load model class 'CytoscapeModel' from module 'jupyter-cytoscape'

I am trying to plot a dask graph inside the jupyter lab. First jupyter asked me to install one of ipygraphviz and ipycytoscape. I wanted to try the latter. I installed ipycytoscape with pip, but then the widget was not showing up. I am a bit…
Soerendip
  • 7,684
  • 15
  • 61
  • 128
0
votes
0 answers

ipycytoscape, draw subgraph

I'm noob in ipycytoscape and Jupyter and seems need help. I'm trying to find a sutable way to show/draw subgraph after I click by node. For example. I have graph with node1---node2---node3 . I click by node1 and want to show node1 --- node2.1 -…
0
votes
1 answer

Tables as node labels in ipycytoscape

I am using ipycytoscape in Python to make a version of Tensorflow's plot_model function for PyTorch. I would like to be able to draw, in Cytoscape, a plot like the attached picture. If I just try to format strings in the node label with \n…
Lars Ericson
  • 1,952
  • 4
  • 32
  • 45
0
votes
1 answer

Cytoscape and selectors

I am not familiar with cytoscape or Java, so I do not know if there is a way to define a node size which depend on node's degree. Currently I am using the following: cytoscapeobj.set_style( [ { 'selector':node, …
V_sqrt
  • 537
  • 8
  • 28
0
votes
1 answer

layout of ipycytoscape for directed graphs arrow disapearing

I have the following code to generate and plot a graph with ipycytoscape: from ipycytoscape import CytoscapeWidget import networkx as nx cyto = CytoscapeWidget() nodes = [1,2,3,4,5,6,7,8] children = [[2],[3,4],[5,6],[6,7],[8],[],[8],[]] G2 =…
JFerro
  • 3,203
  • 7
  • 35
  • 88
0
votes
1 answer

Is there a way to save ipycytoscape (javascript based object) in jupyter notebook(python)?

I was creating a graph through ipycytoscape https://ipycytoscape.readthedocs.io/en/latest/ I have created an interactive graph through the package, in jupyter notebook with my python code. However, is there a way to save this javascript originated…
sammy
  • 427
  • 1
  • 3
  • 14
0
votes
1 answer

Rendering a graph as a tree

I am using ipyvuetify and Ipycytoscape to create a dashboard rendered with voila. I need to create graph data structures as this one: This structure IS NOT rendered with ipycytoscape. Does anyone knows which layout should I use to avoid that…
JFerro
  • 3,203
  • 7
  • 35
  • 88
0
votes
1 answer

python ipycytoscape accesing a node by id

Assuming I have a ipycytoscape graph as follows: railnet= '''{ "nodes": [ {"data": { "id": "BER", "label":"HBf BER", "classes":"east"}}, {"data": { "id": "MUN", "label":"HBf MUN", "classes":"west"}}, {"data": { "id":…
JFerro
  • 3,203
  • 7
  • 35
  • 88
0
votes
1 answer

Plot a graph with ipycytoscape, problems with number of nodes

I am trying to visualize a graph using ipycytoscape and I got so far: import networkx as nx import ipycytoscape G2 = nx.Graph() G2.add_nodes_from([*'ABCDE']) G2.add_edges_from([('A','B'),('B','C'),('D','E'),('F','A'),('C','A')]) mynodes=…
JFerro
  • 3,203
  • 7
  • 35
  • 88
0
votes
2 answers

Plot a graph with ipycytoscape (and networkx)

Following the instructions of ipycitoscape I am not able to plot a graph using ipycitoscape. according to: https://github.com/QuantStack/ipycytoscape/blob/master/examples/Test%20NetworkX%20methods.ipynb this should work: import networkx as nx import…
JFerro
  • 3,203
  • 7
  • 35
  • 88