Changeset 7448:239d0db3d330 in orange


Ignore:
Timestamp:
02/04/11 13:20:00 (3 years ago)
Author:
miha <miha.stajdohar@…>
Branch:
default
Convert:
48de19b9f49b8792c4d8cf16c4a455f1dbd3820d
Message:

refactor to new Orange

Location:
orange/doc/Orange/rst/code
Files:
2 edited

Legend:

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

    r7438 r7448  
    55# Referenced:  graph.htm 
    66 
    7 import orange 
     7import Orange.network 
    88 
    9 graph = orange.GraphAsMatrix(4, 0, objectsOnEdges = 1) 
     9graph = Orange.network.GraphAsMatrix(4, 0, objectsOnEdges = 1) 
    1010graph.objects = ["Age", "Gender", "Height", "Weight"] 
    1111 
     
    3737 
    3838 
    39 graph = orange.GraphAsMatrix(5, 0, 3) 
     39graph = Orange.network.GraphAsMatrix(5, 0, 3) 
    4040print graph[4, 1] 
    4141graph[4, 1, 1]=12 
  • orange/doc/Orange/rst/code/network-graph.py

    r7438 r7448  
    55# Referenced:  graph.htm 
    66 
    7 import orange 
     7import Orange.network 
    88 
    9 graph = orange.GraphAsMatrix(4, 0) 
     9graph = Orange.network.GraphAsMatrix(4, 0) 
    1010graph.objects = ["Age", "Gender", "Height", "Weight"] 
    1111 
     
    3434 
    3535 
    36 graph = orange.GraphAsMatrix(5, 0, 3) 
     36graph = Orange.network.GraphAsMatrix(5, 0, 3) 
    3737print graph[4, 1] 
    3838graph[4, 1, 1]=12 
Note: See TracChangeset for help on using the changeset viewer.