Ignore:
Timestamp:
03/22/11 17:32:08 (3 years ago)
Author:
miha <miha.stajdohar@…>
Branch:
default
Convert:
cec8f1027aa94c7dd7196ec97517bb4ac959054e
Message:

Call new underscore case functions.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orange/doc/Orange/rst/code/network-graph-obj.py

    r7448 r7771  
    1414#graph["Age", "Height"] = orange 
    1515graph["Gender", "Height"] = [1, 2, 3] 
    16 print graph.getEdges() 
     16print graph.get_edges() 
    1717 
    1818print graph[1, 2] 
     
    3232    print 'graph["Gender", "Height"] failed' 
    3333 
    34 print graph.getNeighbours("Age") 
     34print graph.get_neighbours("Age") 
    3535graph.returnIndices = 1 
    36 print graph.getNeighbours("Age") 
     36print graph.get_neighbours("Age") 
    3737 
    3838 
     
    4343print graph[4, 1] 
    4444 
    45 print graph.edgeExists(4, 1) 
    46 print graph.edgeExists(4, 2) 
    47 print graph.edgeExists(4, 1, 1) 
    48 print graph.edgeExists(4, 1, 2) 
     45print graph.edge_exists(4, 1) 
     46print graph.edge_exists(4, 2) 
     47print graph.edge_exists(4, 1, 1) 
     48print graph.edge_exists(4, 1, 2) 
    4949 
    5050e = graph[4, 1] 
     
    5353e[1] = None 
    5454e[2] = 3 
    55 print graph.edgeExists(4, 1, 1) 
    56 print graph.edgeExists(4, 1, 2) 
     55print graph.edge_exists(4, 1, 1) 
     56print graph.edge_exists(4, 1, 2) 
    5757print e 
    5858graph[4, 1]=None 
Note: See TracChangeset for help on using the changeset viewer.