dosubot[bot] commented on issue #2410: URL: https://github.com/apache/incubator-hugegraph/issues/2410#issuecomment-1880543224
_🤖_ <!-- Answer --> In the current version of incubator-hugegraph (0.12.0), it's indeed not possible to set the same EdgeLabel for different VertexLabels. Each EdgeLabel is associated with a pair of source and target VertexLabels, and this relationship is defined when the EdgeLabel is created. This means that an edge with a specific label can only be created between a specific pair of vertex labels. As for the workaround you mentioned, using different prefixes or suffixes for EdgeLabel to distinguish them, like `aCreateB` and `bCreateA`, is a feasible solution for now. This approach allows you to create unique EdgeLabels for different pairs of VertexLabels, while still maintaining some semantic meaning in the EdgeLabel names. Regarding the "parent-child edge" feature mentioned in the discussion, unfortunately, there is no detailed information provided in the given context. The context only includes test cases for creating, appending, and removing EdgeLabels, and does not contain any information about upcoming features or changes. Therefore, I cannot provide more details about the "parent-child edge" feature based on the given context. For the specific code implementation for EdgeLabel in the incubator-hugegraph version 0.12.0, you can refer to the [EdgeLabel.java](https://github.com/apache/incubator-hugegraph/blob/master/hugegraph-server/hugegraph-core/src/main/java/org/apache/hugegraph/schema/EdgeLabel.java) file in the repository. This class extends the SchemaLabel class and represents the label of an edge in the graph. It contains methods to get and set the source and target labels, frequency, sort keys, and other properties of the edge. It also includes a Builder interface for building an EdgeLabel instance. I hope this information helps. If you have any further questions, feel free to ask. ## Sources - [hugegraph-server/hugegraph-test/src/main/java/org/apache/hugegraph/core/EdgeLabelCoreTest.java](https://github.com/apache/incubator-hugegraph/blob/master/hugegraph-server/hugegraph-test/src/main/java/org/apache/hugegraph/core/EdgeLabelCoreTest.java) - [hugegraph-server/hugegraph-core/src/main/java/org/apache/hugegraph/schema/EdgeLabel.java](https://github.com/apache/incubator-hugegraph/blob/master/hugegraph-server/hugegraph-core/src/main/java/org/apache/hugegraph/schema/EdgeLabel.java) --- This response is meant to be useful and save you time. It is **not meant to be a precise solution**, but rather a starting point for your own research. Help me be more useful! Please leave a 👍 if this is helpful and 👎 if it is irrelevant. If you want to continue the conversation, start your reply with @dosu-bot. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
