mirror of
https://github.com/SELinuxProject/setools
synced 2025-03-25 04:26:28 +00:00
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:
parent
42a75ad753
commit
fea650045d
setools
@ -257,7 +257,8 @@ class DomainTransitionAnalysis:
|
|||||||
if self.rebuildgraph:
|
if self.rebuildgraph:
|
||||||
self._build_graph()
|
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
|
# Internal functions follow
|
||||||
|
@ -260,7 +260,8 @@ class InfoFlowAnalysis:
|
|||||||
if self.rebuildgraph:
|
if self.rebuildgraph:
|
||||||
self._build_graph()
|
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
|
# Internal functions follow
|
||||||
|
Loading…
Reference in New Issue
Block a user