Comments (3)
Also, I dont quite understand the example you have on your website:
G = np.random.beta(1, 1, [5,5,3])
this will give me a 5x5x3 array, and I am not sure exactly what is the structure of the edgelist here because it is not in the format of "i j t".
However, if i try to calculate the shortest path by generating G= np.random.beta(1,1,[50,50,3]), the algorithm is really fast to calculate that, usually finishes within two minutes. But when I try to do the exact same calculation of shortest path but with a different input network I created myself, and let tnet be created from edgelist, it is extremely slow. Could you walk me through as why this is the case and what can I do to improve this?
tnet = TemporalNetwork(from_edgelist=A_tr_list, nettype='bd', diagonal=True)
from teneto.
Known issue. #74. Whenever I have time to fix it, I will. All shortest paths outside of toy examples will take a long time to run cause of inefficient code when I tried to improve the algorithm.
Unfortunately, I am completely swamped with other obligations and have been unable to find a week in the last year where I can spend my free time fixing this as currently teneto is not supported under any research grant.
If critical, downgrade to the version where the algorithm runs quicker (I think 0.3.5 is the latest version), whenever betweenness centrality was added then the alg was made slower.
There are different network representations allowed. Array form and edgelist. See documentation.
from teneto.
It is 0.3.5 when the alg is quicker. So I recommend using that if you need it. Again, I am sorry. When I have time to fix it, I will.
from teneto.
Related Issues (20)
- tnet.T incorrect when tnet is sparse and starttime!=0 HOT 6
- Error TenetoBIDS numpy input does not save to json sidecar HOT 1
- Closeness centrality running without interruption HOT 9
- Remove dependencies on neural-specific modules but issue a warning if a function is trying to be used that requires it HOT 21
- [Question] shortest_temporal_path HOT 6
- MemoryError while loading graph HOT 14
- Control colormap of temporal graph nodes HOT 4
- Plotting slice_plot will fail if dataframe columns in wrong order HOT 4
- Improve shortest temporal paths (speed issues) HOT 1
- [ENH] Prewhiten prior to derive_temporalnetwork
- AttributeError: module 'sqlalchemy.util' has no attribute 'dependencies' after importing TemporalNetworks() HOT 3
- wrong number of nodes from TN.N and in netshape HOT 2
- Speed up the shortest path calculation speed HOT 1
- An error: The object 'TemporalNetwork' can't import dataframe data of weighted network HOT 3
- Label node on temporalnetwork ploting HOT 1
- Inconsistency when plotting slice plot a temporal network HOT 6
- How to make a community slice plot HOT 2
- Calculating consensus partition in teneto HOT 2
- Possible Typo in test_communitydetection.py
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from teneto.