示例#1
0
 def connect(self):
     try:
         self.g = pygephi.JSONClient('http://localhost:8080/workspace0', autoflush=True)
         self.g.clean()
         self.connected = True
     except URLError:
         self.connected = False
 def __init__(self, space):
     self._as = space
     self.g = pygephi.JSONClient('http://localhost:8080/workspace0',
                                 autoflush=True)
     self.g.clean()
     self.node_attributes = {
         'size': 10,
         'r': 0.0,
         'g': 0.0,
         'b': 1.0,
         'x': 1
     }
示例#3
0
 def __init__(self):
     self.gephi = pygephi.JSONClient('http://localhost:8080/workspace0',
                                     autoflush=True)
     self.gephi.clean()
     self.default_node_attr = {
         'size': 10,
         'r': 0.0,
         'g': 0.0,
         'b': 1.0,
         'x': 1
     }
     self.default_edge_attr = {}