Open Sidebar
Close Sidebar
CrystalDoc.info
Source code
Shards.info
probfin
v0.1.0-alpha
DAG
Vertex
Name
ProbFin
BlockHash
Chain
Built with Crystal 1.9.2
2023-10-07 10:39:03 UTC
class
DAG::Vertex
DAG::Vertex
Reference
Object
Defined in:
dag.cr
Constructors
.new
(name : String, edges : Hash(String, DAG::Vertex) = {}
of
Name
=>
Vertex
)
Instance Method Summary
#add
(edge_to vertex : Vertex) : Void
#children
: Array(Vertex)
#edges
: Hash(Name, Vertex)
#name
: Name
Constructor Detail
def self.
new
(name : String, edges : Hash(String,
DAG::Vertex
) = {}
of
Name
=>
Vertex
)
#
[
View source
]
Instance Method Detail
def
add
(edge_to vertex :
Vertex
) : Void
#
[
View source
]
def
children
: Array(
Vertex
)
#
[
View source
]
def
edges
: Hash(
Name
,
Vertex
)
#
[
View source
]
def
name
:
Name
#
[
View source
]