Open Sidebar
Close Sidebar
CrystalDoc.info
Source code
Shards.info
probfin
v0.2.1
DAG
Tip
Vertex
Name
ProbFin
BlockHash
Chain
Built with Crystal 1.9.2
2023-10-08 13:11:38 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) : Nil
#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
) : Nil
#
[
View source
]
def
children
: Array(
Vertex
)
#
[
View source
]
def
edges
: Hash(
Name
,
Vertex
)
#
[
View source
]
def
name
:
Name
#
[
View source
]