Class: PetriNet::ReachabilityGraph::Edge
- Inherits:
-
Graph::Edge
- Object
- Base
- Graph::Edge
- PetriNet::ReachabilityGraph::Edge
- Defined in:
- lib/petri_net/reachability_graph/edge.rb
Instance Attribute Summary
Attributes inherited from Graph::Edge
#destination, #graph, #id, #name, #probability, #source, #transition
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(graph, options = {}) {|_self| ... } ⇒ Edge
constructor
Creates an edge for PetriNet::ReachabilityGraph.
-
#validate ⇒ Object
Validates the data holded by this edge, this will be used while adding the edge to the graph.
Methods inherited from Graph::Edge
Methods inherited from Base
Constructor Details
#initialize(graph, options = {}) {|_self| ... } ⇒ Edge
Creates an edge for PetriNet::ReachabilityGraph
3 4 5 6 |
# File 'lib/petri_net/reachability_graph/edge.rb', line 3 def initialize(graph, = {}, &block) super(graph, ) yield self unless block.nil? end |
Instance Method Details
#validate ⇒ Object
Validates the data holded by this edge, this will be used while adding the edge to the graph
9 10 11 |
# File 'lib/petri_net/reachability_graph/edge.rb', line 9 def validate super end |