If NX is not suitable, any suggestions?
Thanks,
Van
--
You received this message because you are subscribed to the Google Groups "networkx-discuss" group.
To post to this group, send email to networkx...@googlegroups.com.
To unsubscribe from this group, send email to networkx-discu...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/networkx-discuss?hl=en.
One thought I had was to subclass the Graph class(es) and put in a
neo4j-based representation underneath. From an initial gander at the
source code, it seemed like graph objects were mostly opaque, and the
various algorithms didn't poke around the internals too much. Thoughts?
Anyway, the base class methods are the only methods
that access the data structure directly so it should
be fairly straightforward to subclass it with another
underlying representation.
Dan
> --
> You received this message because you are subscribed to the Google
> Groups "networkx-discuss" group.
> To post to this group, send email to networkx-
> dis...@googlegroups.com.
> To unsubscribe from this group, send email to networkx-discuss
> +unsub...@googlegroups.com.
Looking again at the structure of my data, though, I think there might
be a way to avoid some of the complexity if there is an iterative
algorithm that keeps the cliques organized as new nodes are added. Among
other things, my dataset represents changes over time, and I fully
expect that the cliques at time T1 will evolve and be slightly different
at times T2, T3, etc.
Is there a good algorithm that will keep things "sorted" -- clique-wise
-- while I add new nodes and edges over time? If possible, I would like
to avoid re-analyzing the whole dataset at each timestep.
Thanks,
Van
Cumulative. My dataset is the US Patent Database, which I have spent
some time getting into a tractable form -- data acquisition and
normalization has taken several months. Now I am want to examine
communities based upon a number of different types of connections. I am
starting with direct references, but have several other types of
references that I will eventually look at.
I expect that cliques will form around new technologies. These cliques
will gradually differentiate into subfields, and some may merge with
other cliques as cross-disciplinary approaches are tried.
I want to try it two ways: first, just adding new nodes as they come and
examining the cliques that develop, and second try aging the links
between nodes to see if that changes things.
Thanks,
Van
You just need pylab.hist() and a little code:
import networkx
G=networkx.path_graph(5)
lengths=[] # all path lengths in graph, counted twice
for n in G:
p=networkx.single_source_shortest_path_length(G,n).values()
lengths.extend(p)
import pylab
pylab.hist(lengths,bins=max(lengths),align='left',rwidth=0.5)
pylab.show()
The histogram is of frequencies so you'll have to normalize
accordingly.
Aric
There is an example of a subclass at
http://networkx.lanl.gov/examples/subclass/printgraph.html
We have tried to not expose the underlying data structures anywhere
in the algorithms (but there is no test we run to demonstrate that is true).
We do rely on Python dictionary expressions like G[v] etc.
I also have experimented using Python shelve to store persistent graph objects
https://networkx.lanl.gov/trac/ticket/224
Aric
I ment the kind of the plot in the attached file.
May be was not to precise about.
See the attached file
Cheers
----- Message d'origine ----
De : Aric Hagberg <ahag...@gmail.com>
À : networkx...@googlegroups.com
Envoyé le : Dim 4 avril 2010, 17 h 19 min 10 s
Objet : Re: [networkx-discuss] plottting the distribution of distances
Aric
--
Is there any routine that generates strongly regular graph?
http://en.wikipedia.org/wiki/Strongly_regular_graph
Cheers