dta, infoflow: Replace nx.info() function.

This is a deprecated function and was removed in NetworkX 3.0.

Signed-off-by: Chris PeBenito <chpebeni@linux.microsoft.com>
This commit is contained in:
Chris PeBenito 2023-02-02 16:49:39 -05:00
parent 42a75ad753
commit fea650045d
2 changed files with 4 additions and 2 deletions

View File

@ -257,7 +257,8 @@ class DomainTransitionAnalysis:
if self.rebuildgraph:
self._build_graph()
return nx.info(self.G)
return f"Graph nodes: {nx.number_of_nodes(self.G)}\n" \
f"Graph edges: {nx.number_of_edges(self.G)}"
#
# Internal functions follow

View File

@ -260,7 +260,8 @@ class InfoFlowAnalysis:
if self.rebuildgraph:
self._build_graph()
return nx.info(self.G)
return f"Graph nodes: {nx.number_of_nodes(self.G)}\n" \
f"Graph edges: {nx.number_of_edges(self.G)}"
#
# Internal functions follow