Commit bbeba75f authored by VIGNET Pierre's avatar VIGNET Pierre
Browse files

Remove dependency to matplotlib for the lib

parent 31974898
......@@ -43,7 +43,6 @@ Classes for static analysis
"""
import string
import networkx as nx
import matplotlib.pyplot as plt
import copy
from collections import OrderedDict
......@@ -954,6 +953,8 @@ def view_graph(graph):
"""
draw interaction graph with matplotlib
"""
import matplotlib.pyplot as plt
pos = nx.spring_layout(graph, iterations=5)
low = []
medium = []
......@@ -985,6 +986,8 @@ def view_weighted_graph(graph, rank):
"""
???
"""
import matplotlib.pyplot as plt
pos = nx.spring_layout(graph, iterations=10)
edges = graph.edges(data=True)
elarge = [(u, v) for (u, v, d) in edges if d['weight'] > 1]
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment