class CrystalGraph::AdjacencyMatrixGraph

Defined in:

crystalgraph/adjacencyMatrixGraph.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(size : Int32, weighted : Bool = false, nilAsMax : Bool = false) #

[View source]

Instance Method Detail

def [](index : Tuple(Int32, Int32)) : Int64 | Nil #

[View source]
def []=(index : Tuple(Int32, Int32), weight : Int | Nil) #

[View source]
def add_edge(source : Int32, target : Int32, weight : Int | Nil = nil) #

[View source]
def add_node : Int32 #

[View source]