You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tinkerpop.apache.org by "Cole Greer (Jira)" <ji...@apache.org> on 2026/07/15 01:08:00 UTC
[jira] [Closed] (TINKERPOP-3261) Enable multiple label support on vertex with configurable label cardinality
[ https://issues.apache.org/jira/browse/TINKERPOP-3261?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Cole Greer closed TINKERPOP-3261.
---------------------------------
Fix Version/s: 4.0.0
Assignee: Yang Xia
Resolution: Fixed
> Enable multiple label support on vertex with configurable label cardinality
> ---------------------------------------------------------------------------
>
> Key: TINKERPOP-3261
> URL: https://issues.apache.org/jira/browse/TINKERPOP-3261
> Project: TinkerPop
> Issue Type: Improvement
> Components: structure
> Affects Versions: 4.0.0
> Reporter: Yang Xia
> Assignee: Yang Xia
> Priority: Major
> Fix For: 4.0.0
>
>
> Vertices are currently limited to a single immutable label assigned at creation. This prevents modeling common real-world scenarios where entities naturally belong to multiple categories (e.g., a person who is both an employee and a manager).
>
> Introduce a configurable LabelCardinality that controls how many labels a vertex may have and whether they can be mutated after creation. Three proposed modes: ONE (current behavior, default), ONE_OR_MORE (mutable, minimum one), ZERO_OR_MORE (fully flexible).
>
> New steps:
>
> - labels() — flatMap step emitting each label as a traverser
> - addLabel(String, String...) — add labels to a vertex
> - dropLabel(String, String...) — remove specific labels
> - dropLabels() — remove all labels
> Edge labels remain at cardinality ONE. The infrastructure would support future edge multi-label enablement without wire format changes.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)