question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Studio: Improving graph rendering to split vertices and edges

See original GitHub issue

Collect only the edges that are relevant to the vertices in the resultset.

Example:

{
    "graph": {
        "vertices": [{
            "@rid": "#17:62",
            "@class": "Whisky",
            "name": "Springbank"
        }, {
            "@rid": "#17:67",
            "@class": "Whisky",
            "name": "Tobermory"
        }, {
            "@rid": "#15:3",
            "@class": "FlavourGroup",
            "dryness": "Medium",
            "name": "D",
            "description": "Low or No Peat, with Fruity, Floral, Malty Notes and Nutty Hints.",
            "body": "Light"
        }, {
            "@rid": "#15:5",
            "@class": "FlavourGroup",
            "dryness": "Medium",
            "name": "F",
            "description": "Medium-Bodied, Medium-Sweet, Low Peat, Malty Notes and Sherry, Honey, Spicy Hints.",
            "body": "Medium"
        }, {
            "@rid": "#12:1",
            "@class": "Location",
            "name": "Alexandria"
        }, {
            "@rid": "#17:2",
            "@class": "Whisky",
            "name": "Arran"
        }, {
            "@rid": "#12:6",
            "@class": "Location",
            "name": "Blackford"
        }, {
            "@rid": "#17:7",
            "@class": "Whisky",
            "name": "BenRiach"
        }, {
            "@rid": "#12:11",
            "@class": "Location",
            "name": "Dalmuir"
        }, {
            "@rid": "#17:12",
            "@class": "Whisky",
            "name": "Bruichladdich"
        }, {
            "@rid": "#12:16",
            "@class": "Location",
            "name": "Elgin"
        }, {
            "@rid": "#17:17",
            "@class": "Whisky",
            "name": "Cragganmore"
        }, {
            "@rid": "#12:21",
            "@class": "Location",
            "name": "Isle of Islay"
        }, {
            "@rid": "#14:3",
            "@class": "Flavour",
            "name": "Malt"
        }, {
            "@rid": "#17:22",
            "@class": "Whisky",
            "name": "Deanston"
        }, {
            "@rid": "#12:26",
            "@class": "Location",
            "name": "Kirkwall"
        }, {
            "@rid": "#14:8",
            "@class": "Flavour",
            "name": "Peat"
        }, {
            "@rid": "#17:27",
            "@class": "Whisky",
            "name": "Glen Grant"
        }, {
            "@rid": "#12:31",
            "@class": "Location",
            "name": "Muir of Ord"
        }, {
            "@rid": "#17:32",
            "@class": "Whisky",
            "name": "Glendronach"
        }, {
            "@rid": "#12:36",
            "@class": "Location",
            "name": "Oldmeldrum"
        }, {
            "@rid": "#11:4",
            "@class": "Region",
            "name": "Lowlands"
        }, {
            "@rid": "#17:37",
            "@class": "Whisky",
            "name": "Glenkinchie"
        }, {
            "@rid": "#12:41",
            "@class": "Location",
            "name": "Rothes"
        }, {
            "@rid": "#17:42",
            "@class": "Whisky",
            "name": "Glenturret"
        }, {
            "@rid": "#17:47",
            "@class": "Whisky",
            "name": "Knockando"
        }, {
            "@rid": "#17:52",
            "@class": "Whisky",
            "name": "Macallan"
        }, {
            "@rid": "#17:57",
            "@class": "Whisky",
            "name": "Old Pulteney"
        }],
        "edges": [{
            "@rid": "#13:11",
            "@class": "InRegion",
            "from": "#11:4",
            "to": "#12:11"
        }, {
            "@rid": "#16:30",
            "@class": "FlavourInGroup",
            "from": "#14:2",
            "to": "#15:5"
        }, {
            "@rid": "#13:16",
            "@class": "InRegion",
            "from": "#11:5",
            "to": "#12:16"
        }, {
            "@rid": "#16:35",
            "@class": "FlavourInGroup",
            "from": "#14:2",
            "to": "#15:7"
        }, {
            "@rid": "#16:25",
            "@class": "FlavourInGroup",
            "from": "#14:7",
            "to": "#15:4"
        }]
    }
}

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:10 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
lvcacommented, Jul 4, 2016

Good question. Do you prefer I rename them as @from and @to so they are metadata? Makes a lot of sense to me.

Read more comments on GitHub >

github_iconTop Results From Across the Web

igraph - AWS
Here we use igraph's graph.data.frame function, which takes two data frames: d and vertices. d describes the edges of the network. Its first...
Read more >
A Rogue Historian - Introduction to Network Analysis with R
The entities are referred to as nodes or vertices of a graph, while the connections are edges or links. In this post I...
Read more >
igraph.pdf - The Comprehensive R Archive Network
Vertices and edges have numerical vertex ids in igraph. Vertex ids are always consecutive and they start with one. I.e. for a graph...
Read more >
Using Graph Studio in Oracle Autonomous Database
8 Visualize and Interact with Graph Data in Graph Studio ... A property graph consists of vertices that are linked together by edges....
Read more >
Progressive Forest Split Compression
In this paper we introduce the Progressive Forest Split (PFS) repre- ... the graph of vertices and edges of the mesh, a sequence...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found