Prints basic Graph statistics to standard output or to a file named OutFNm. Additional extensive statistics which is computationally more expensive is computed when Fast is False.
Parameters:
A Snap.py graph or a network.
Graph description.
Optional file name for output. By default or if specified as “”, output is printed to stdout.
Optional flag specifing whether basic (True) or extended (False) statistics should be printed.
Return value:
The following example shows how to output extensive graph statistics to standard output for random graphs of type TNGraph, TUNGraph, and TNEANet:
import snap
output_file = ""
fast = False
Graph = snap.GenRndGnm(snap.PNGraph, 100, 1000)
prefix = "Python type PNGraph"
snap.PrintInfo(Graph, prefix, output_file, fast)
UGraph = snap.GenRndGnm(snap.PUNGraph, 100, 1000)
prefix = "Python type PUNGraph"
snap.PrintInfo(UGraph, prefix, output_file, fast)
Network = snap.GenRndGnm(snap.PNEANet, 100, 1000)
prefix = "Python type PNEANet"
snap.PrintInfo(Network, prefix, output_file, fast)