Ejemplo n.º 1
0
    def __init__(self, graph, vertex=None):
        Node.__init__(self, graph, vertex)

        self.type = 'user'

        if User.style is None:
            User.style = graph.new_vertex_style(0)
            graph.set_vertex_style_attribute(User.style, "color", "#FFFF00")
Ejemplo n.º 2
0
    def __init__(self, graph, vertex=None):
        Node.__init__(self, graph, vertex)

        self.type = 'pageView'

        if PageView.style is None:
            PageView.style = graph.new_vertex_style(0)
            graph.set_vertex_style_attribute(PageView.style, "color", "#CCCC99")
Ejemplo n.º 3
0
    def __init__(self, graph, vertex=None):
        Node.__init__(self, graph, vertex)

        self.type = 'device'

        if Device.style is None:
            Device.style = graph.new_vertex_style(0)
            graph.set_vertex_style_attribute(Device.style, "color", "#666600")