Package com.tnsai.coordination.flow
Class FlowGraph
java.lang.Object
com.tnsai.coordination.flow.FlowGraph
Directed acyclic graph representing agent flow routing.
Produced by
FlowDSL.parse(String).-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondependenciesOf(String node) Dependencies for a given node (same as predecessors).intTotal number of edges.leaves()Agents with no outgoing edges — the exit points.nodes()All agent names in the graph, in declaration order.predecessors(String node) Incoming edges: which agents feed into this agent?roots()Agents with no incoming edges — the entry points.successors(String node) Outgoing edges: which agents does this agent feed into?Returns a topological ordering of nodes.toString()
-
Constructor Details
-
FlowGraph
public FlowGraph()
-
-
Method Details
-
nodes
All agent names in the graph, in declaration order. -
successors
Outgoing edges: which agents does this agent feed into? -
predecessors
Incoming edges: which agents feed into this agent? -
roots
Agents with no incoming edges — the entry points. -
leaves
Agents with no outgoing edges — the exit points. -
dependenciesOf
Dependencies for a given node (same as predecessors). -
topologicalOrder
Returns a topological ordering of nodes. -
edgeCount
public int edgeCount()Total number of edges. -
toString
-