Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(11)  |  Call(7)  |  Derive(0)  |  Import(4)
Simple wrapper class for any mapping of edges to values.
E.g.,

- draw edges (for GraphDisplay)
- weights (for embeddings) 

Use EdgeLabeling[(u,v)] for access

XXX Historical artefact: should be removed (or be a synonim of UserDict)

src/g/a/Gato-1.1.2/GraphUtil.py   Gato(Download)
from GatoGlobals import *
import Graph
from DataStructures import Point2D, VertexLabeling, EdgeLabeling, EdgeWeight, VertexWeight, Queue
import logging
log = logging.getLogger("Gato")
    L = VertexLabeling()
    VLabel = VertexLabeling()
    ELabel = EdgeLabeling()
 
    file = open(fileName, 'r')
    L = VertexLabeling()
    VLabel = VertexLabeling()
    ELabel = EdgeLabeling()
 
    import re

src/g/a/Gato-1.1.2/Graph.py   Gato(Download)
 
from GatoGlobals import *
from DataStructures import Point2D, VertexLabeling, EdgeLabeling, EdgeWeight
import GraphUtil #import ConnectedComponents, FindBipartitePartitions 
 
            Default: weightID = 0 is used """
 
        self.edgeWidth = EdgeLabeling()
        edges = self.Edges()
        if len(edges) > 0:

src/g/a/Gato-1.1.2/ObjectGraph.py   Gato(Download)
 
from GatoGlobals import *
from DataStructures import Point2D, VertexLabeling, EdgeLabeling, EdgeWeight
#from math import log
 

src/g/a/Gato-1.1.2/GraphDisplay.py   Gato(Download)
from GatoUtil import orthogonal
from GatoDialogs import AutoScrollbar
from DataStructures import Point2D, VertexLabeling, EdgeLabeling
import os
import colorsys
        # Canvas items for vertices and edges 
        self.drawVertex = VertexLabeling()
        self.drawEdges = EdgeLabeling()
        self.drawLabel = VertexLabeling()
        self.vertexAnnotation = VertexLabeling()
        self.edgeAnnotation = EdgeLabeling()
        self.canvas.delete("all") # Remove whatever is left
        self.drawVertex = VertexLabeling()
        self.drawEdges = EdgeLabeling()
        self.drawLabel = VertexLabeling()
        self.vertexAnnotation = VertexLabeling()
        self.edgeAnnotation = EdgeLabeling()