Example of a basic netsJSON description

File ConnectivityWeighted.json :

{  "netsJSON": "basic",
   "info": {
      "title": "Weighted example network based on (Fig. 5) from An algebraic approach ...",
      "network": "ConnectivityWeighted",
      "mode": 1, "org": 1,
      "simple": true, "directed": true, "multirel": false,
      "nNodes": 15, "nEdges": 4, "nArcs": 16,
      "temporal": true,
      "time": {
         "Tmin": 1, "Tmax": 9, 
         "Tlabs": { "1": "t1", "2": "t2", "3": "t3", "4": "t4", "5": "t5", "6": "t6", "7": "t7", "8": "t8", "9": "t9" }
      },
      "meta": [
         {  "date": "Wed Jun  4 14:20:02 2014",
            "title": "saved from Ianus to TEN" },
         {  "date": "Fri Sep 16 08:07:26 2016",
            "title": "saved from Ianus to netJSON" },
         {  "date": "Tue Sep 20 2016",
            "title": "manual changes",
            "author": "Vladimir Batagelj",
            "desc": "In the file ConnectivityTest.json weights were updated to values different from 1 to enable testing of Ps cores procedure."
         }
      ]
   },
   "nodes": [
      {  "id":  1, "lab":  "1", "tq": [[ 1, 9, 1 ]] },
      {  "id":  2, "lab":  "2", "tq": [[ 1, 9, 1 ]] },
      {  "id":  3, "lab":  "3", "tq": [[ 1, 9, 1 ]] },
      {  "id":  4, "lab":  "4", "tq": [[ 1, 9, 1 ]] },
      {  "id":  5, "lab":  "5", "tq": [[ 1, 9, 1 ]] },
      {  "id":  6, "lab":  "6", "tq": [[ 1, 9, 1 ]] },
      {  "id":  7, "lab":  "7", "tq": [[ 1, 9, 1 ]] },
      {  "id":  8, "lab":  "8", "tq": [[ 1, 9, 1 ]] },
      {  "id":  9, "lab":  "9", "tq": [[ 1, 9, 1 ]] },
      {  "id": 10, "lab": "10", "tq": [[ 1, 9, 1 ]] },
      {  "id": 11, "lab": "11", "tq": [[ 1, 9, 1 ]] },
      {  "id": 12, "lab": "12", "tq": [[ 1, 9, 1 ]] },
      {  "id": 13, "lab": "13", "tq": [[ 1, 9, 1 ]] },
      {  "id": 14, "lab": "14", "tq": [[ 1, 9, 1 ]] },
      {  "id": 15, "lab": "15", "tq": [[ 1, 9, 1 ]] }
   ],
   "links": [
      {  "type": "edge", "n1":  2, "n2":  1, "tq": [[ 1, 5, 3 ], [ 5, 9, 5 ]] },
      {  "type": "arc",  "n1":  2, "n2":  4, "tq": [[ 3, 9, 3 ]] },
      {  "type": "arc",  "n1":  3, "n2":  2, "tq": [[ 1, 5, 4 ], [ 5, 9, 2 ]] },
      {  "type": "arc",  "n1":  4, "n2":  5, "tq": [[ 1, 9, 2 ]] },
      {  "type": "arc",  "n1":  5, "n2":  6, "tq": [[ 1, 9, 5 ]] },
      {  "type": "arc",  "n1":  5, "n2":  7, "tq": [[ 1, 5, 3 ]] },
      {  "type": "arc",  "n1":  6, "n2":  4, "tq": [[ 1, 9, 2 ]] },
      {  "type": "arc",  "n1":  7, "n2":  8, "tq": [[ 1, 9, 2 ]] },
      {  "type": "arc",  "n1":  7, "n2":  9, "tq": [[ 1, 9, 7 ]] },
      {  "type": "arc",  "n1":  7, "n2": 10, "tq": [[ 1, 9, 1 ]] },
      {  "type": "arc",  "n1":  8, "n2":  9, "tq": [[ 1, 5, 4 ], [ 5, 9, 1 ]] },
      {  "type": "arc",  "n1":  8, "n2": 10, "tq": [[ 1, 9, 5 ]] },
      {  "type": "arc",  "n1":  9, "n2": 10, "tq": [[ 1, 9, 2 ]] },
      {  "type": "arc",  "n1":  9, "n2": 11, "tq": [[ 1, 9, 6 ]] },
      {  "type": "arc",  "n1": 10, "n2": 11, "tq": [[ 1, 9, 3 ]] },
      {  "type": "arc",  "n1": 11, "n2":  7, "tq": [[ 7, 9, 4 ]] },
      {  "type": "arc",  "n1": 11, "n2":  8, "tq": [[ 1, 9, 2 ]] },
      {  "type": "edge", "n1": 14, "n2": 13, "tq": [[ 2, 8, 4 ]] },
      {  "type": "edge", "n1": 15, "n2": 13, "tq": [[ 2, 5, 2 ], [ 5, 8, 5 ]] },
      {  "type": "edge", "n1": 15, "n2": 14, "tq": [[ 2, 8, 3 ]] }
   ]
}

Back to netsJSON

notes/net/json/exbasic.txt · Last modified: 2020/05/04 01:59 by vlado
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Noncommercial-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki