CutPartition
symbolica.community.hepkit Class
CutPartition()A separating topology partition, independent of physical final-state cuts.
Both boundary selections retain half-edges on their respective sides.
Examples
from symbolica import S, E
from symbolica.community import hepkit as hep
model = hep.Model.phi4()
diagram = model.process(["phi", "phi"], ["phi", "phi"]).generate_diagrams(loops=1, progress=None).diagrams[0]partitions = diagram.all_cuts([0], [1])
boundary_edges = partitions[0].boundary_left.edgesMember details
source_side
Property · read-only#source_side: SubgraphRegion containing the requested source vertices.
Examples
source = diagram.all_cuts([0], [1])[0].source_sidetarget_side
Property · read-only#target_side: SubgraphRegion containing the requested target vertices.
Examples
target = diagram.all_cuts([0], [1])[0].target_sideboundary_left
Property · read-only#boundary_left: SubgraphCrossing half-edges incident to the source side.
Examples
source_ports = diagram.all_cuts([0], [1])[0].boundary_left.half_edgesboundary_right
Property · read-only#boundary_right: SubgraphCrossing half-edges incident to the target side.
Examples
target_ports = diagram.all_cuts([0], [1])[0].boundary_right.half_edgesView generated signature source: docs/api/python/feynkit-community.pyi:1485