Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dfnGraph (v2.8) fails to identify the backbones with bipartite approach considering weight (length and hydraulic resistence) #85

Open
yingtaohu opened this issue Jul 22, 2024 · 2 comments

Comments

@yingtaohu
Copy link

Hello all,

When i run the example "pruning" to generate bipartite graphs, there is an error:
image
So i change the code in "pruning.py":
"path_nodes = sorted(list(k_shortest))--------> path_nodes =list(k_shortest)"
Then the running is OK.

However, if i try to use "greedy_edge_disjoint" method to identifying the backbones of DFN, here is another issue:
image
So i change the code in "pruning.py" again:
"if G.graph['representation'] != "intersection":--------> if G.graph['representation'] != "bipartite":"
Then the running is OK. Is it right?

These results are good for me. However,how can i identify the backbones with bipartite graph-based approach considering weight (length and hydraulic resistence) ? Is there any open source codes ? I cann't find it. So i cann't repeat the results in:
Hyman et al. 2018 "Identifying Backbones in Three-Dimensional Discrete Fracture Networks: A Bipartite Graph-Based Approach" SIAM Multiscale Modeling and Simulation.

Thanks in advance!

@hymanjd
Copy link
Collaborator

hymanjd commented Jul 24, 2024

Hi, the greedy disjoint path algorithm requires that you use the intersection graph, not the bipartite.

All source code is in the pydfnworks/dfnGraph subdirectory

@yingtaohu
Copy link
Author

Thanks, Jeffrey.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants