src/report.bend checks
raw source on the hub · import bend-visgraph@2.0.0.0/src/report.bend as Report
What ts2vg's command line prints: the edge list, the degree sequence, the degree counts and the degree distribution.
2 imports
import Base import ../visgraph.bend as VG
Definitions
def weight_text source · line 8 · raw
@weighted:Bool -> @w:F32 -> String
def edge_line source · line 15 · raw
@+weighted:Bool -> @s:U32 -> @t:U32 -> @w:F32 -> String
def edges_text source · line 18 · raw
@+weighted:Bool -> @es:0xe3a7f78ee5245da17fe27e3556f94e74/visgraph.Edges -> @acc:String -> String
def is_weighted source · line 27 · raw
@k:0xe3a7f78ee5245da17fe27e3556f94e74/visgraph.Weight -> Bool
def bump.set source · line 34 · raw
@+i:U32 -> @r:Pair(Array<U32>, U32) -> Array<U32>
def bump source · line 38 · raw
@d:Array<U32> -> @+i:U32 -> Array<U32>
def sequence_text source · line 43 · raw
@f:Nat -> @r:Pair(Array<U32>, U32) -> @+i:U32 -> @acc:String -> String
The degree sequence, one per line. r is the degree array with the
degree of node i; the f nodes below i are still to print.
def degree_sequence.from source · line 52 · raw
@empty:Bool -> @+n:U32 -> @d:Array<U32> -> String
def degree_sequence source · line 60 · raw
@+n:U32 -> @d:Array<U32> -> String
The degree sequence of the n nodes whose degrees d holds.
def count_loop source · line 65 · raw
@f:Nat -> @r:Pair(Array<U32>, U32) -> @+i:U32 -> @c:Array<U32> -> Array<U32>
How many nodes have each degree: r is the degree array with the degree
of node i; the f nodes above i are still to count.
def count_value source · line 76 · raw
@share:Bool -> @+v:U32 -> @+n:U32 -> String
Degree counts or the degree distribution: k count or k count/n for
each degree k some node has, from the smallest k.
def count_line source · line 83 · raw
@zero:Bool -> @+share:Bool -> @+k:U32 -> @+v:U32 -> @+n:U32 -> @acc:String -> String
def counts_text source · line 90 · raw
@f:Nat -> @+share:Bool -> @+n:U32 -> @r:Pair(Array<U32>, U32) -> @+k:U32 -> @acc:String -> String
def degree_counts.text source · line 99 · raw
@+share:Bool -> @+n:U32 -> @c:Array<U32> -> String
def degree_counts.from source · line 102 · raw
@empty:Bool -> @+share:Bool -> @+n:U32 -> @d:Array<U32> -> String
def degree_counts source · line 109 · raw
@+share:Bool -> @+n:U32 -> @d:Array<U32> -> String
def edge_list source · line 113 · raw
@+weighted:Bool -> @g:0xe3a7f78ee5245da17fe27e3556f94e74/visgraph.Graph -> String
The edge list of g.