Record Class SteinerSubgraph
java.lang.Object
java.lang.Record
org.impulsegraph.api.traversal.SteinerSubgraph
public record SteinerSubgraph(List<Long> bridgeNodes, List<Long> allNodes, List<SteinerSubgraph.SteinerEdge> edges, List<SteinerSubgraph.SteinerTripleKey> triples)
extends Record
Induced Steiner-like subgraph connecting multi-lane seed/concept frontiers,
including bridge nodes, all active subgraph nodes, inducing edges, and
human-readable business-key triples for GraphRAG context serialization.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordstatic final record -
Constructor Summary
ConstructorsConstructorDescriptionSteinerSubgraph(List<Long> bridgeNodes, List<Long> allNodes, List<SteinerSubgraph.SteinerEdge> edges, List<SteinerSubgraph.SteinerTripleKey> triples) Creates an instance of aSteinerSubgraphrecord class. -
Method Summary
Modifier and TypeMethodDescriptionallNodes()Returns the value of theallNodesrecord component.Returns the value of thebridgeNodesrecord component.edges()Returns the value of theedgesrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.triples()Returns the value of thetriplesrecord component.
-
Constructor Details
-
SteinerSubgraph
public SteinerSubgraph(List<Long> bridgeNodes, List<Long> allNodes, List<SteinerSubgraph.SteinerEdge> edges, List<SteinerSubgraph.SteinerTripleKey> triples) Creates an instance of aSteinerSubgraphrecord class.- Parameters:
bridgeNodes- the value for thebridgeNodesrecord componentallNodes- the value for theallNodesrecord componentedges- the value for theedgesrecord componenttriples- the value for thetriplesrecord component
-
-
Method Details
-
allActiveNodes
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
bridgeNodes
-
allNodes
-
edges
Returns the value of theedgesrecord component.- Returns:
- the value of the
edgesrecord component
-
triples
Returns the value of thetriplesrecord component.- Returns:
- the value of the
triplesrecord component
-