Graph

>>> N._graph
{
 'time': (2010, 2012),
 'required':
    {'nodes': ['id', 'mode', 'lab', 'act'],
     'links': ['n1', 'n2', 'type', 'tq']},
 'temporal': True,
 'multirel': False,
 'legends': {},
 'simple': False,
 'meta': [{'date': 'Sat Oct  8 21:32:35 2016', 'title': 'TwoMode2netJSON'},
    {'date': 'Sat Oct  8 21:32:35 2016', 'title': 'saved from Graph to netJSON'}],
 'dim': (10, 6),
 'trace': ['Sat Oct  8 21:32:35 2016',
    ['fmf6707', 'C:\\Users\\batagelj\\work\\Python\\graph\\JSON\\test'],
    'Graph', 'twoMode2netJSON', ['yearsTest.clu', 'WAtest.net'],
    ['input', 'input']],
 'Tlabs': {'2012': '2012', '2011': '2011', '2010': '2010'},
 'mode': 2,
 'title': 'instant'
}
>>> N._nodes
{
  1: [{}, {}, {11: [1], 14: [2]}, {'id': 1, 'mode': 1, 'lab': 'A', 'act': [(2010, 2013, 1)]}],
  2: [{}, {}, {16: [5], 12: [3], 15: [4]}, {'id': 2, 'mode': 1, 'lab': 'B', 'act': [(2010, 2013, 1)]}],
  3: [{}, {}, {16: [8], 13: [6], 14: [7]}, {'id': 3, 'mode': 1, 'lab': 'C', 'act': [(2010, 2013, 1)]}],
  4: [{}, {}, {11: [9], 14: [10]}, {'id': 4, 'mode': 1, 'lab': 'D', 'act': [(2011, 2013, 1)]}],
  5: [{}, {}, {16: [12], 13: [11]}, {'id': 5, 'mode': 1, 'lab': 'E', 'act': [(2011, 2013, 1)]}],
  6: [{}, {}, {11: [13], 12: [14], 14: [15]}, {'id': 6, 'mode': 1, 'lab': 'F', 'act': [(2011, 2013, 1)]}],
  7: [{}, {}, {12: [16], 13: [17], 15: [18]}, {'id': 7, 'mode': 1, 'lab': 'G', 'act': [(2012, 2013, 1)]}],
  8: [{}, {}, {11: [19], 12: [20], 15: [21]}, {'id': 8, 'mode': 1, 'lab': 'H', 'act': [(2012, 2013, 1)]}],
  9: [{}, {}, {14: [22]}, {'id': 9, 'mode': 1, 'lab': 'I', 'act': [(2012, 2013, 1)]}],
 10: [{}, {}, {16: [24], 13: [23]}, {'id': 10, 'mode': 1, 'lab': 'J', 'act': [(2012, 2013, 1)]}],
 11: [{}, {8: [19], 1: [1], 4: [9], 6: [13]}, {}, {'id': 11, 'mode': 2, 'lab': 'a', 'act': [(2010, 2013, 1)]}],
 12: [{}, {8: [20], 2: [3], 6: [14], 7: [16]}, {}, {'id': 12, 'mode': 2, 'lab': 'b', 'act': [(2010, 2013, 1)]}],
 13: [{}, {10: [23], 3: [6], 5: [11], 7: [17]}, {}, {'id': 13, 'mode': 2, 'lab': 'c', 'act': [(2010, 2013, 1)]}],
 14: [{}, {1: [2], 3: [7], 4: [10], 6: [15], 9: [22]}, {}, {'id': 14, 'mode': 2, 'lab': 'd', 'act': [(2010, 2013, 1)]}],
 15: [{}, {8: [21], 2: [4], 7: [18]}, {}, {'id': 15, 'mode': 2, 'lab': 'e', 'act': [(2010, 2013, 1)]}],
 16: [{}, {10: [24], 2: [5], 3: [8], 5: [12]}, {}, {'id': 16, 'mode': 2, 'lab': 'f', 'act': [(2010, 2013, 1)]}]
}
>>> N._links
{
  1: [1, 11, True, None, {'n1': 1, 'n2': 11, 'tq': [(2010, 2011, 1)], 'type': 'arc'}],
  2: [1, 14, True, None, {'n1': 1, 'n2': 14, 'tq': [(2010, 2011, 1)], 'type': 'arc'}],
  3: [2, 12, True, None, {'n1': 2, 'n2': 12, 'tq': [(2010, 2011, 1)], 'type': 'arc'}],
  4: [2, 15, True, None, {'n1': 2, 'n2': 15, 'tq': [(2010, 2011, 1)], 'type': 'arc'}],
  5: [2, 16, True, None, {'n1': 2, 'n2': 16, 'tq': [(2010, 2011, 1)], 'type': 'arc'}],
  6: [3, 13, True, None, {'n1': 3, 'n2': 13, 'tq': [(2010, 2011, 1)], 'type': 'arc'}],
  7: [3, 14, True, None, {'n1': 3, 'n2': 14, 'tq': [(2010, 2011, 1)], 'type': 'arc'}],
  8: [3, 16, True, None, {'n1': 3, 'n2': 16, 'tq': [(2010, 2011, 1)], 'type': 'arc'}],
  9: [4, 11, True, None, {'n1': 4, 'n2': 11, 'tq': [(2011, 2012, 1)], 'type': 'arc'}],
 10: [4, 14, True, None, {'n1': 4, 'n2': 14, 'tq': [(2011, 2012, 1)], 'type': 'arc'}],
 11: [5, 13, True, None, {'n1': 5, 'n2': 13, 'tq': [(2011, 2012, 1)], 'type': 'arc'}],
 12: [5, 16, True, None, {'n1': 5, 'n2': 16, 'tq': [(2011, 2012, 1)], 'type': 'arc'}],
 13: [6, 11, True, None, {'n1': 6, 'n2': 11, 'tq': [(2011, 2012, 1)], 'type': 'arc'}],
 14: [6, 12, True, None, {'n1': 6, 'n2': 12, 'tq': [(2011, 2012, 1)], 'type': 'arc'}],
 15: [6, 14, True, None, {'n1': 6, 'n2': 14, 'tq': [(2011, 2012, 1)], 'type': 'arc'}],
 16: [7, 12, True, None, {'n1': 7, 'n2': 12, 'tq': [(2012, 2013, 1)], 'type': 'arc'}],
 17: [7, 13, True, None, {'n1': 7, 'n2': 13, 'tq': [(2012, 2013, 1)], 'type': 'arc'}],
 18: [7, 15, True, None, {'n1': 7, 'n2': 15, 'tq': [(2012, 2013, 1)], 'type': 'arc'}],
 19: [8, 11, True, None, {'n1': 8, 'n2': 11, 'tq': [(2012, 2013, 1)], 'type': 'arc'}],
 20: [8, 12, True, None, {'n1': 8, 'n2': 12, 'tq': [(2012, 2013, 1)], 'type': 'arc'}],
 21: [8, 15, True, None, {'n1': 8, 'n2': 15, 'tq': [(2012, 2013, 1)], 'type': 'arc'}],
 22: [9, 14, True, None, {'n1': 9, 'n2': 14, 'tq': [(2012, 2013, 1)], 'type': 'arc'}], 
 23: [10, 13, True, None, {'n1': 10, 'n2': 13, 'tq': [(2012, 2013, 1)], 'type': 'arc'}], 
 24: [10, 16, True, None, {'n1': 10, 'n2': 16, 'tq': [(2012, 2013, 1)], 'type': 'arc'}]
}
>>> 
tq/print/graph.txt · Last modified: 2016/10/08 22:38 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