Skip to content

Add LAD graph serialisation format #934

Description

@james-d-mitchell

Here's a serialiser, but no deserialiser just yet, not sure if this is correct though:

LADString := function(D)
  local result, nbs, v;
    result := StringFormatted("{}\n", DigraphNrVertices(D));
    for nbs in OutNeighbours(D) do
        Append(result, String(Length(nbs)));
        for v in SortedList(nbs) do
            Append(result, " ");
            Append(result, String(v - 1));
        od;
        Append(result, "\n");
    od;
     return result;
end;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions