Comments (1)
Maybe the number of nodes is not the primal issue : adding some edges does not solve the problem. The same error is raised when adding edges (A,C) and (B,C) :
G = nx.DiGraph(directed=True, n_res=2)
G.add_edge("Source", "A", res_cost=array([1, 2]), weight=0)
G.add_edge("A", "B", res_cost=array([1, 0.3]), weight=0)
G.add_edge("A", "C", res_cost=array([1, 0.1]), weight=0)
G.add_edge("B", "C", res_cost=array([1, 3]), weight=-10)
G.add_edge("A", "Sink", res_cost=array([1, 10]), weight=0)
max_res, min_res = [4, 20], [1, 0]
bidirec = BiDirectional(G, max_res, min_res, direction="both")
bidirec.run()
print(bidirec.path)
from cspy.
Related Issues (20)
- Which dominance rule is used in .bidirectional HOT 1
- Fix Nuget push step in actions
- Generation of more paths with BiDirectional algorithm HOT 5
- cspy.BiDirectional (monodirectional) HOT 9
- Returning all the negative cost path in Elementary shortest path problem HOT 1
- Relax strict monoticity assumption of input resources
- Are these algorithms can be used to find shortest path which travel through a set of specific nodes? HOT 2
- False dominance rule for 2-cycles in non-elementary RCSP HOT 1
- cspy.PSOLGENT example code fails HOT 1
- cspy k path functionality HOT 5
- v1.0.3 unusable on arm64 HOT 2
- Why does min_res impact the output HOT 3
- Ability to select arbitrary source and sink HOT 6
- Ability to disable some checks on the graph. HOT 2
- Multi trip vehicle routing problem
- cspy.GRASP example code fails
- Adding modify accumulated cost in Callback
- Use cspy as a C++ library HOT 1
- Python 3.12 build error HOT 1
- What is an invertible REF? HOT 1
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 cspy.