client/data/test-data.json
author veltr
Thu, 16 Aug 2012 17:23:45 +0200
changeset 18 4423bfcd8f9f
parent 2 3360c3f7fb18
child 26 2fad193bae98
permissions -rw-r--r--
UI improvements - Can now delete edges

{
    "title": "Test Graph",
    "creation_date": "2012-07-25T11:00:00.0Z",
    "users": [
        {
            "id": "u-cybunk",
            "title": "Samuel",
            "uri": "http://twitter.com/cybunk",
            "color": "#e00000"
        },
        {
            "id": "u-raphv",
            "title": "Raphael",
            "uri": "http://twitter.com/raphv",
            "color": "#00a000"
        }
    ],
    "nodes": [
        {
            "id": "n-001",
            "title": "連環 (Renkan)",
            "uri": "http://ja.wikipedia.org/wiki/%E7%99%BE%E5%AD%A6%E9%80%A3%E7%92%B0",
            "created_by": "u-cybunk",
            "position": {
                "x": 0,
                "y": 0
            }
        },
        {
            "id": "n-002",
            "title": "Savoir",
            "uri": "http://fr.wikipedia.org/wiki/Savoir",
            "created_by": "u-raphv",
            "position": {
                "x": 200,
                "y": 50
            }
        },
        {
            "id": "n-003",
            "title": "Connaissance",
            "uri": "http://fr.wikipedia.org/wiki/Connaissance",
            "created_by": "u-raphv",
            "position": {
                "x": 300,
                "y": -50
            }
        },
        {
            "id": "n-004",
            "title": "graphe",
            "uri": "http://fr.wikipedia.org/wiki/Th%C3%A9orie_des_graphes",
            "created_by": "u-cybunk",
            "position": {
                "x": -200,
                "y": 0
            }
        },
        {
            "id": "n-005",
            "title": "nœud",
            "uri": "http://fr.wikipedia.org/wiki/Th%C3%A9orie_des_graphes",
            "created_by": "u-cybunk",
            "position": {
                "x": -350,
                "y": 100
            }
        },
        {
            "id": "n-006",
            "title": "lien",
            "uri": "http://fr.wikipedia.org/wiki/Th%C3%A9orie_des_graphes",
            "created_by": "u-cybunk",
            "position": {
                "x": -300,
                "y": -100
            }
        }
    ],
    "edges": [
        {
            "id": "e-001",
            "from": "n-001",
            "to": "n-002",
            "created_by": "u-raphv"
        },
        {
            "id": "e-002",
            "from": "n-002",
            "to": "n-003",
            "created_by": "u-raphv"
        },
        {
            "id": "e-003",
            "from": "n-001",
            "to": "n-004",
            "created_by": "u-cybunk"
        },
        {
            "id": "e-004",
            "from": "n-004",
            "to": "n-005",
            "created_by": "u-cybunk"
        },
        {
            "id": "e-005",
            "from": "n-004",
            "to": "n-006",
            "created_by": "u-cybunk"
        }
    ]
}