src/report.bend checks
raw source on the hub · import bend-visgraph@1.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 ./graph.bend as G
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:0xe3f5cb14a0b4bd4d5826a0042d3c3d23/src/graph.Edges -> @acc:String -> String
def is_weighted source · line 27 · raw
@k:0xe3f5cb14a0b4bd4d5826a0042d3c3d23/src/graph.Weight -> Bool
def slots source · line 38 · raw
@+n:U32 -> Array<U32>
An array with room for n slots, indexed from 0.
def bump.set source · line 41 · raw
@+i:U32 -> @r:Pair(Array<U32>, U32) -> Array<U32>
def bump source · line 45 · raw
@d:Array<U32> -> @+i:U32 -> Array<U32>
def added source · line 48 · raw
@r:Pair(Array<U32>, U32) -> Array<U32>
def atomic_bump source · line 52 · raw
@d:Array<U32> -> @+i:U32 -> Array<U32>
def degrees source · line 57 · raw
@es:0xe3f5cb14a0b4bd4d5826a0042d3c3d23/src/graph.Edges -> @d:Array<U32> -> Array<U32>
The degrees of the nodes of es, added into d; parallel.bend counts
them on every thread.
def sequence_text source · line 68 · 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 77 · raw
@empty:Bool -> @+n:U32 -> @d:Array<U32> -> String
def degree_sequence source · line 85 · raw
@+n:U32 -> @d:Array<U32> -> String
The degree sequence of the n nodes whose degrees d holds.
def count_loop source · line 90 · 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 101 · 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 108 · raw
@zero:Bool -> @+share:Bool -> @+k:U32 -> @+v:U32 -> @+n:U32 -> @acc:String -> String
def counts_text source · line 115 · raw
@f:Nat -> @+share:Bool -> @+n:U32 -> @r:Pair(Array<U32>, U32) -> @+k:U32 -> @acc:String -> String
def degree_counts.text source · line 124 · raw
@+share:Bool -> @+n:U32 -> @c:Array<U32> -> String
def degree_counts.from source · line 127 · raw
@empty:Bool -> @+share:Bool -> @+n:U32 -> @d:Array<U32> -> String
def degree_counts source · line 134 · raw
@+share:Bool -> @+n:U32 -> @d:Array<U32> -> String