Nodes can be created from scratch
var node = new DotNode("id")
node["label"] = "ID"
Then added to a graph
var graph = new DotGraph("G", "digraph")
graph.add node
Or can be created directly from an existing graph
var node2 = graph.add_node("id2")
node2["label"] = "ID2"
dot :: DotNode :: defaultinit
core :: Object :: class_factory
Implementation used byget_class
to create the specific class.
dot :: DotElement :: defaultinit
dot :: DotNode :: defaultinit
core :: Object :: defaultinit
core :: Object :: is_same_instance
Return true ifself
and other
are the same instance (i.e. same identity).
core :: Object :: is_same_serialized
Isself
the same as other
in a serialization context?
core :: Object :: is_same_type
Return true ifself
and other
have the same dynamic type.
core :: Object :: output_class_name
Display class name on stdout (debug only).
# A dot node
#
# Nodes can be created from scratch
# ~~~
# var node = new DotNode("id")
# node["label"] = "ID"
# ~~~
# Then added to a graph
# ~~~
# var graph = new DotGraph("G", "digraph")
# graph.add node
# ~~~
# Or can be created directly from an existing graph
# ~~~
# var node2 = graph.add_node("id2")
# node2["label"] = "ID2"
# ~~~
class DotNode
super DotElement
end
lib/dot/dot.nit:173,1--192,3