Topological Overlap
Hello I have a file with network node pairs and weights as time difference I am trying to find the topological overlap of that data I have been searching for any sample in python but i dont seem to find any. Any suggestion in start with are appreciated Thanks Lav -- https://mail.python.org/mailman/listinfo/python-list
Re: Topological Overlap
Hello It is not a homework really. Actually it is a huge project and topological overlap is one part in that inputfile: 0_node_1 0_node_2 w0 1_node_1 1_node_2 w1 2_node_1 2_node_2 w2 3_node_1 3_node_2 w3 4_node_1 4_node_2 w4 5_node_1 5_node_2 w5 2 nodes in pair and w is the weight. I have to find the topological overlap in the network including the weights On Sat, Aug 16, 2014 at 7:59 PM, George Silva georger.si...@gmail.com wrote: Homework? You need to give us a start, sample of the data and an actual question. I don't think many people will help you do your homework for you. On Sat, Aug 16, 2014 at 7:32 AM, lavanya addepalli phani@gmail.com wrote: Hello I have a file with network node pairs and weights as time difference I am trying to find the topological overlap of that data I have been searching for any sample in python but i dont seem to find any. Any suggestion in start with are appreciated Thanks Lav -- https://mail.python.org/mailman/listinfo/python-list -- George R. C. Silva SIGMA Consultoria http://www.consultoriasigma.com.br/ -- https://mail.python.org/mailman/listinfo/python-list
Node Neighbours
I am trying to find the neighbour of pair of Nodes. Individual and Combined. I am not getting any idea how to start about. Any suggestion will be appreciated Thanks Lav -- https://mail.python.org/mailman/listinfo/python-list
New to Python and Python mail List
Hello Everyone I am very much new to python scripting and i am here for knowledge exchange. I am trying to read a file with node pairs and weight. I have to find the neighbours of each pair individual and combined both also count them. Later find the ratio of the neighbours that each node has. I am stuck with finding nodes. infile.txt 0_node1 0_node2 0w 1_node1 1_node2 1w 2_node1 2_node2 2w 3_node1 3_node2 3w 4_node1 4_node2 4w import networkx as nx import matplotlib.pyplot as plt G=nx.Graph() G = nx.read_edgelist('infile.txt', data=[(weight, float)]) def get_triangle(G): for n1 in G.nodes: neighbors1 = set(G[n1]) for n2 in filter(lambda x: xn1, nodes): neighbors2 = set(G[n2]) common = neighbors1 neighbors2 for n3 in filter(lambda x: xn2, common): print n1 print n2 print n3 Any suggestion will be appreciated. Thanks -- https://mail.python.org/mailman/listinfo/python-list
Appending to a file using Python API
Hello all, How do you append to a file using Python os::file APIs. So that it appends to the content of the file. Not adding the content to the new line. But just appends next to the exiting content of the file. Example : current content of file A B C if we append D to it, it should be A B C D Not like: A B C D regards, lavanya -- http://mail.python.org/mailman/listinfo/python-list