Answers for "90-Percentile effective diameter"

0

90-Percentile effective diameter

import snap

Graph = snap.GenRndGnm(snap.TNGraph, 100, 1000)
NTestNodes = 10
IsDir = False
EffDiam = Graph.GetBfsEffDiam(NTestNodes, IsDir)
print(EffDiam)

UGraph = snap.GenRndGnm(snap.TUNGraph, 100, 1000)
NTestNodes = 10
IsDir = False
EffDiam = UGraph.GetBfsEffDiam(NTestNodes, IsDir)
print(EffDiam)

Network = snap.GenRndGnm(snap.TNEANet, 100, 1000)
NTestNodes = 10
IsDir = False
EffDiam = Network.GetBfsEffDiam(NTestNodes, IsDir)
print(EffDiam)
Posted by: Guest on March-21-2021

Browse Popular Code Answers by Language