Skip to content
This repository was archived by the owner on Jan 18, 2025. It is now read-only.
This repository was archived by the owner on Jan 18, 2025. It is now read-only.

How to manage edges in a node structure? #41

@josebalius

Description

@josebalius

Lets say I have two nodes and I want to keep a relationship between these two nodes. Is there anyway I can model that in a struct? For example:

type Node struct {
   Type string
   InEdges []Edge
   OutEdges []Edge
}

type Edge struct {
   Source string // string for Node id, or actual Node ?
   Target string
   Weight int
}

My question is, is there anyway to use Orient's native edges and graph features but still be able to model them with structs?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions