Example #1
0
 def _create_node(self, graph, article):
     """Create pygraph node"""
     graph.add_node(article.id)
     graph.add_node_attribute(article.id,{
         'name':article.slug,
         'data':{}
     })
Example #2
0
 def create_node(self, graph, article):
     graph.add_node(article.id)
     graph.add_node_attribute(article.id,{
         'name':article.slug,
         'data':{}
     })