The edge element defines an
edge in the query.
The name of the edge, as defined in the query, is
provided in the required name
attribute. The edge element may
contain an optional condition
element and an optional numeric-annotation element. Edges in
the query are matched to links in the database.
Edges must indicate which vertices they connect and whether or not the direction of the edge is taken into account when matching the query to database structures.
<edge>Attributes
name
|
required | Edge name as used in the query; edge names are case sensitive |
Children
vertex1 |
exactly one | The starting vertex; must match the name (including case) of a vertex in this query |
vertex2 |
exactly one | The ending vertex; must match the name (including case) of a vertex in this query |
directed |
exactly one | Whether to consider link direction in matching; must be “true” or “false” |
condition |
zero or one | Restrictions on the link’s attribute values |
numeric-annotation |
zero or one | Cardinality requirements for matching links |
Content Model
(vertex1, vertex2, directed, condition?, numeric-annotation?)
<edge name="Y"> <vertex1>A</vertex1> <vertex2>B</vertex2> <directed>true</directed> <condition> see condition </condition> <numeric-annotation> see numeric-annotation </numeric-annotation> </edge>