Commits

Giovanni Marco Dall'Olio committed e96122d

Fix: create visual style if it doesnt exist

Fix #6

  • Participants
  • Parent commits 6156099

Comments (0)

Files changed (9)

 
 all: figures/Betweenness.png report/node_centralities.pdf 
 
-cytoscape_debug: figures/Betweenness.png
+debug_cytoscape: 
+	ipython -pylab main_node_centrality_figures.py 
 
 figures: figures/Betweenness.png 
 figures/Betweenness.png: main_node_centrality_figures.py create_legend.py create_histogram.py

File figures/Betweenness.png

Old
Old image
New
New image

File figures/Centroid.png

Old
Old image
New
New image

File figures/Closeness.png

Old
Old image
New
New image

File figures/Eccentricity.png

Old
Old image
New
New image

File figures/Node_degree.png

Old
Old image
New
New image

File figures/Radiality.png

Old
Old image
New
New image

File figures/Stress.png

Old
Old image
New
New image

File main_node_centrality_figures.py

         C.setVisualStyle(stylename)
     else:
         # TODO: create a new visual style if needed. I can't find the function right now
-        pass
+        C.copyVisualStyle("default", stylename)
 
     centralities_values = sorted(C.getNodesAttributes(centrality_attr, node_ids))