Skip to content

Vertex/edge labels #3

Description

@gsmnv

Is it possible to label edges/vertices with arbitary data type? It'll be great to be able do so. E.g i want to represent path with graph and that graph should have vertices labeled with string type(like street name or whatever) and edges with int type(travel time). Ultimately it should be possible to instantinate these two types of labels(for edges and for vertices) with arbitrary type.

Imaginary code follows for better understandin what i mean.


// Vertex label type.
class Foo { ... };
// Edge label type.
enum Bar { ... };

auto graph = new Graph!(Foo, Bar)(...);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions