sawtooth.cli.stats_lib.topology_stats module

class sawtooth.cli.stats_lib.topology_stats.TopologyManager(endpoint_manager, config)[source]

Bases: sawtooth.cli.stats_lib.stats_utils.StatsModule

initialize(module_list)[source]
process()[source]
update_topology()[source]
extract_peer_nodes(stats)[source]
build_map()[source]
analyze_graph()[source]
class sawtooth.cli.stats_lib.topology_stats.TopologyStats[source]

Bases: object

Edge Conditions:
must handle empty graph (no nodes) must handle one node (and no edges) must handle graph with no edges (no connected nodes) must handle graph with multiple connected components (including nodes with no edges)
Synopsis:
identifies connected components does full analysis if there is only one connected component
clear_stats()[source]
analyze_graph(graph)[source]
min_connectivity(graph)[source]
shortest_paths(graph)[source]
max_shortest_path_length(graph)[source]
get_stats_as_dict()[source]