graphicle.select.find_vertex(graph: Graphicle, pdgs_in: set[int] | None = None, pdgs_out: set[int] | None = None) ndarray[Any, dtype[int32]][source]

Locate vertices with the inward and outward particles of the passed pdg codes.

New in version 0.1.0.

Parameters:
graph : Graphicle

Graphicle object, which must contain at least edge and pdg data.

pdgs_in : set of ints

Subset of pdg codes to match against the incoming particles.

pdgs_out : set of ints

Subset of pdg codes to match against the outgoing particles.

Returns:

List the vertex ids which match the passed incoming and outgoing pdg codes.

Return type:

ndarray[int32]

Raises:

ValueError – Raised if pdgs_in and pdgs_out are both left blank.


Last update: Jun 27, 2025