jgrapht-users Mailing List for JGraphT (Page 12)
Brought to you by:
barak_naveh,
perfecthash
You can subscribe to this list here.
2003 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(2) |
Nov
|
Dec
|
---|---|---|---|---|---|---|---|---|---|---|---|---|
2004 |
Jan
(1) |
Feb
|
Mar
|
Apr
|
May
|
Jun
(1) |
Jul
(1) |
Aug
|
Sep
(1) |
Oct
|
Nov
|
Dec
(2) |
2005 |
Jan
|
Feb
(1) |
Mar
(5) |
Apr
(1) |
May
|
Jun
(12) |
Jul
(6) |
Aug
(7) |
Sep
(2) |
Oct
|
Nov
(1) |
Dec
|
2006 |
Jan
(4) |
Feb
(3) |
Mar
(2) |
Apr
(3) |
May
(6) |
Jun
(2) |
Jul
(3) |
Aug
(12) |
Sep
(6) |
Oct
(3) |
Nov
(12) |
Dec
|
2007 |
Jan
(6) |
Feb
|
Mar
(6) |
Apr
(8) |
May
(2) |
Jun
(8) |
Jul
(2) |
Aug
(3) |
Sep
(7) |
Oct
(3) |
Nov
|
Dec
(1) |
2008 |
Jan
(11) |
Feb
(4) |
Mar
(8) |
Apr
(3) |
May
(4) |
Jun
(1) |
Jul
|
Aug
(3) |
Sep
(1) |
Oct
(4) |
Nov
(5) |
Dec
(5) |
2009 |
Jan
(3) |
Feb
(12) |
Mar
(14) |
Apr
(9) |
May
(8) |
Jun
(1) |
Jul
(4) |
Aug
(10) |
Sep
|
Oct
(10) |
Nov
|
Dec
(4) |
2010 |
Jan
(9) |
Feb
(16) |
Mar
(14) |
Apr
(19) |
May
(1) |
Jun
(3) |
Jul
(17) |
Aug
(9) |
Sep
(4) |
Oct
(4) |
Nov
(11) |
Dec
(8) |
2011 |
Jan
(10) |
Feb
(11) |
Mar
(10) |
Apr
(14) |
May
(6) |
Jun
(8) |
Jul
(9) |
Aug
(11) |
Sep
(13) |
Oct
(7) |
Nov
(9) |
Dec
(1) |
2012 |
Jan
(5) |
Feb
(14) |
Mar
(4) |
Apr
(25) |
May
(18) |
Jun
(18) |
Jul
(3) |
Aug
(6) |
Sep
(3) |
Oct
(16) |
Nov
(5) |
Dec
(12) |
2013 |
Jan
(1) |
Feb
(6) |
Mar
(14) |
Apr
(34) |
May
(9) |
Jun
(3) |
Jul
(8) |
Aug
|
Sep
(10) |
Oct
(11) |
Nov
(11) |
Dec
(15) |
2014 |
Jan
(2) |
Feb
(6) |
Mar
(11) |
Apr
(12) |
May
(6) |
Jun
(7) |
Jul
|
Aug
(4) |
Sep
(1) |
Oct
(1) |
Nov
(5) |
Dec
(6) |
2015 |
Jan
(15) |
Feb
(4) |
Mar
(7) |
Apr
(8) |
May
(1) |
Jun
(18) |
Jul
(27) |
Aug
(13) |
Sep
(4) |
Oct
(8) |
Nov
(7) |
Dec
(6) |
2016 |
Jan
(4) |
Feb
(5) |
Mar
|
Apr
(15) |
May
(5) |
Jun
(4) |
Jul
(1) |
Aug
(1) |
Sep
(7) |
Oct
(2) |
Nov
(4) |
Dec
(2) |
2017 |
Jan
(7) |
Feb
(1) |
Mar
(17) |
Apr
(2) |
May
(1) |
Jun
|
Jul
|
Aug
(3) |
Sep
(3) |
Oct
|
Nov
(5) |
Dec
(6) |
2018 |
Jan
(23) |
Feb
(17) |
Mar
(4) |
Apr
(5) |
May
(6) |
Jun
(3) |
Jul
(5) |
Aug
(2) |
Sep
(3) |
Oct
(2) |
Nov
(5) |
Dec
|
2019 |
Jan
(1) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2020 |
Jan
|
Feb
(2) |
Mar
|
Apr
(1) |
May
(1) |
Jun
(8) |
Jul
(8) |
Aug
|
Sep
(2) |
Oct
(9) |
Nov
|
Dec
(1) |
2021 |
Jan
|
Feb
(4) |
Mar
(2) |
Apr
|
May
|
Jun
|
Jul
|
Aug
(3) |
Sep
(3) |
Oct
(3) |
Nov
(1) |
Dec
|
2023 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(2) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(4) |
Nov
|
Dec
|
2024 |
Jan
|
Feb
|
Mar
|
Apr
(1) |
May
|
Jun
(1) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Rushang K. <rus...@ho...> - 2015-07-12 21:21:25
|
Thanks Fabian!! Are you going to contributing a C++ port in Boost as well? Date: Sun, 12 Jul 2015 14:19:00 -0700 From: js...@gm... To: jgr...@li... CC: fab...@un... Subject: [jgrapht-users] ismorphism Hey folks, Fabian Späh and his colleagues at the University of Constance have contributed an implementation of the VF2 graph isomorphism and subgraph isomorphism matching algorithm. http://ieeexplore.ieee.org/xpl/articleDetails.jsp?arnumber=1323804 I've merged it into trunk. I've also deleted the old isomorphism implementation from the experimental package. Although the world still waits in breathless anticipation to learn whether there exists a guaranteed polynomial-time solution for isomorphism over arbitrary graphs, the VF2 algorithm should beat the old brute-force implementation in just about any case you can think of. Thanks Fabian! JVS ------------------------------------------------------------------------------ Don't Limit Your Business. Reach for the Cloud. GigeNET's Cloud Solutions provide you with the tools and support that you need to offload your IT needs and focus on growing your business. Configured For All Businesses. Start Your Cloud Today. https://www.gigenetcloud.com/ _______________________________________________ jgrapht-users mailing list jgr...@li... https://lists.sourceforge.net/lists/listinfo/jgrapht-users |
From: John S. <js...@gm...> - 2015-07-12 21:19:08
|
Hey folks, Fabian Späh and his colleagues at the University of Constance have contributed an implementation of the VF2 graph isomorphism and subgraph isomorphism matching algorithm. http://ieeexplore.ieee.org/xpl/articleDetails.jsp?arnumber=1323804 I've merged it into trunk. I've also deleted the old isomorphism implementation from the experimental package. Although the world still waits in breathless anticipation to learn whether there exists a guaranteed polynomial-time solution for isomorphism over arbitrary graphs, the VF2 algorithm should beat the old brute-force implementation in just about any case you can think of. Thanks Fabian! JVS |
From: Syed <ale...@ho...> - 2015-07-09 19:29:16
|
Hi Experts, I am trying to test Edmonds Blossom Shrinking, but it is going into inifinite loop for my graph: Do you have any idea why? DefaultEdge e12 = g.addEdge(v1, v2); DefaultEdge e13 = g.addEdge(v1, v3); DefaultEdge e23 = g.addEdge(v2, v3); DefaultEdge e24 = g.addEdge(v2, v4); DefaultEdge e34 = g.addEdge(v3, v4); DefaultEdge e35 = g.addEdge(v3, v5); DefaultEdge e45 = g.addEdge(v4, v5); Regards, -- View this message in context: http://jgrapht-users.107614.n3.nabble.com/Edmonds-Blossom-Algorithm-Infinite-Loop-Error-tp4025018.html Sent from the jgrapht-users mailing list archive at Nabble.com. |
From: Szabolcs B. <bes...@gm...> - 2015-07-09 18:54:49
|
I could manage to reproduce the problem (even for smaller graphs) but as I'm not familiar with the algorithm I suggest to submit an issue on the project site. R egards, Szabolcs 2015-07-09 19:54 GMT+02:00 Syed <ale...@ho...>: > Hi, Thanks for your response. > > Edmonds algorithm is getting into inifinite loop for my graph: Do you have > any idea why? > > Here are my edges. > > > DefaultEdge e12 = g.addEdge(v1, v2); > DefaultEdge e13 = g.addEdge(v1, v3); > DefaultEdge e23 = g.addEdge(v2, v3); > DefaultEdge e24 = g.addEdge(v2, v4); > DefaultEdge e34 = g.addEdge(v3, v4); > DefaultEdge e35 = g.addEdge(v3, v5); > DefaultEdge e45 = g.addEdge(v4, v5); > > Thanks again for your help. I am really stuck in to it. > > > Regards, > > > > -- > View this message in context: > http://jgrapht-users.107614.n3.nabble.com/Edmonds-blossom-query-tp4025012p4025016.html > Sent from the jgrapht-users mailing list archive at Nabble.com. > > > ------------------------------------------------------------------------------ > Don't Limit Your Business. Reach for the Cloud. > GigeNET's Cloud Solutions provide you with the tools and support that > you need to offload your IT needs and focus on growing your business. > Configured For All Businesses. Start Your Cloud Today. > https://www.gigenetcloud.com/ > _______________________________________________ > jgrapht-users mailing list > jgr...@li... > https://lists.sourceforge.net/lists/listinfo/jgrapht-users > |
From: Syed <ale...@ho...> - 2015-07-09 17:54:42
|
Hi, Thanks for your response. Edmonds algorithm is getting into inifinite loop for my graph: Do you have any idea why? Here are my edges. DefaultEdge e12 = g.addEdge(v1, v2); DefaultEdge e13 = g.addEdge(v1, v3); DefaultEdge e23 = g.addEdge(v2, v3); DefaultEdge e24 = g.addEdge(v2, v4); DefaultEdge e34 = g.addEdge(v3, v4); DefaultEdge e35 = g.addEdge(v3, v5); DefaultEdge e45 = g.addEdge(v4, v5); Thanks again for your help. I am really stuck in to it. Regards, -- View this message in context: http://jgrapht-users.107614.n3.nabble.com/Edmonds-blossom-query-tp4025012p4025016.html Sent from the jgrapht-users mailing list archive at Nabble.com. |
From: Szabolcs B. <bes...@gm...> - 2015-07-09 17:15:56
|
Create a simple Maven project and add jgrapht-core as dependency. After that you can simply test the EdmondsBlossomShrinking algorithm, where *g* is your graph of choice: EdmondsBlossomShrinking<Integer, DefaultEdge> matcher = new EdmondsBlossomShrinking<Integer, DefaultEdge>(g); Get the matching set and print it out: Set<DefaultEdge> match = matcher.getMatching(); for (DefaultEdge edge : match) { System.out.println(edge); } (I hope the formatting looks okay) Regards, Szabolcs 2015-07-09 18:20 GMT+02:00 Syed <ale...@ho...>: > Thanks, > > Can you tell how to see the matching results, it doesnt print anything. > > > Sorry for silly questions, i am totally new to this stuff. > > > > > -- > View this message in context: > http://jgrapht-users.107614.n3.nabble.com/Edmonds-blossom-query-tp4025012p4025014.html > Sent from the jgrapht-users mailing list archive at Nabble.com. > > > ------------------------------------------------------------------------------ > Don't Limit Your Business. Reach for the Cloud. > GigeNET's Cloud Solutions provide you with the tools and support that > you need to offload your IT needs and focus on growing your business. > Configured For All Businesses. Start Your Cloud Today. > https://www.gigenetcloud.com/ > _______________________________________________ > jgrapht-users mailing list > jgr...@li... > https://lists.sourceforge.net/lists/listinfo/jgrapht-users > |
From: Syed <ale...@ho...> - 2015-07-09 16:20:08
|
Thanks, Can you tell how to see the matching results, it doesnt print anything. Sorry for silly questions, i am totally new to this stuff. -- View this message in context: http://jgrapht-users.107614.n3.nabble.com/Edmonds-blossom-query-tp4025012p4025014.html Sent from the jgrapht-users mailing list archive at Nabble.com. |
From: Szabolcs B. <bes...@gm...> - 2015-07-09 16:00:14
|
That's a class of the JUnit testing framework. You can read more here: http://junit.org/ . Regards, Szabolcs 2015-07-09 17:49 GMT+02:00 Ali Muhammad <ale...@ho...>: > Hi Experts, > > I am new to java and am trying to test Edmonds blossom implementation, the > test file : EdmondsBlossomShrinkingTest extends TestCase, where do i find > this TestCase file? > > > Thanks in advance. > > > ------------------------------------------------------------------------------ > Don't Limit Your Business. Reach for the Cloud. > GigeNET's Cloud Solutions provide you with the tools and support that > you need to offload your IT needs and focus on growing your business. > Configured For All Businesses. Start Your Cloud Today. > https://www.gigenetcloud.com/ > _______________________________________________ > jgrapht-users mailing list > jgr...@li... > https://lists.sourceforge.net/lists/listinfo/jgrapht-users > > |
From: Ali M. <ale...@ho...> - 2015-07-09 15:49:36
|
Hi Experts, I am new to java and am trying to test Edmonds blossom implementation, the test file : EdmondsBlossomShrinkingTest extends TestCase, where do i find this TestCase file? Thanks in advance. |
From: Syed <ale...@ho...> - 2015-07-09 15:44:07
|
Hi Experts, I am new to java and am trying to test Edmonds blossom implementation, the test file : EdmondsBlossomShrinkingTest extends TestCase, where do i find this TestCase file? Thanks in advance. -- View this message in context: http://jgrapht-users.107614.n3.nabble.com/Edmonds-Blossom-Shrinking-Test-Case-tp4025011.html Sent from the jgrapht-users mailing list archive at Nabble.com. |
From: Szabolcs B. <bes...@gm...> - 2015-07-02 14:24:15
|
As the exception states, you are adding an edge to your graph which results in a loop which is not permitted for the type of graph you are currently working with. Consider using a DirectedPseudograph <http://mathworld.wolfram.com/Pseudograph.html>. Regards, Besenyei Szabolcs 2015-07-02 17:15 GMT+02:00 fee...@gm... <fee...@gm...>: > Thank you guys for your replies… I’ve made some changes in my simple code > taking into account your advice…..however I’m still getting this error: > > Exception in thread "main" java.lang.IllegalArgumentException: loops not > allowed > ÏÏ§Ï at > org.jgrapht.graph.AbstractBaseGraph.addEdge(AbstractBaseGraph.java:243) > ÏÏ§Ï at org.jgrapht.Graphs.addEdge(Graphs.java:88) > ÏÏ§Ï at JGraphTestDirected.main(JGraphTestDirected.java:77) > > > My plan is simple…take a matrix with weights…….two for loops to go through > it for creating edges and adding weights. > > > any help will be appreciated. > > > Phil > > > > On 1/07/2015, at 7:26 pm, Joris Kinable <de...@gm...> wrote: > > Three ways to add weighted edges: > > 1. Use the graph itself: > DefaultWeightedEdge e=graph.addEdge(V vertex1, V vertex2); > graph.setEdgeWeight(e, double weight); > > 2. Use one of the following methods in the Graphs package: > Graphs.addAllEdges(Graph<? super V,? super E> destination, Graph<V,E> > source, Collection<? extends E> edges) > Graphs.addEdge(Graph<V,E> g, V sourceVertex, V targetVertex, double weight) > Graphs.addEdgeWithVertices(Graph<V,E> targetGraph, Graph<V,E> sourceGraph, > E edge, double weight) > > 3. Use the Graph Builder which was added to the latest version of jgrapht: > SimpleWeightedGraph<String, DefaultWeightedEdge> builtWeightedGraph = > SimpleWeightedGraph.<String, DefaultWeightedEdge> > builder(DefaultWeightedEdge.class) > .addEdge(v1, v2, 1.0) > .addEdge(v1, v2, 2.0) > .addEdge(v3, v4, 3.0) > .addEdge(v2, v4, 2.0) > .build(); > > > br, > > Joris Kinable > > On Wed, Jul 1, 2015 at 7:13 PM, Rushang Karia <rus...@ho...> > wrote: > >> I am at work right now and do not remember if such a function exists (not >> worked on weighted graphs a lot). I guess there should be such a function >> since your problem is quite intuitive. >> >> However, >> If no such function exists then you could overload the addEdge() to >> specify a weight for the WeightedGraph. >> The function would be >> >> DefaultWeightedEdge <V, E> addEdge(V v1, V v2, E weight) >> { >> DefaultWeightedEdge e1 = super.addEdge(v1, v2); >> this.setEdgeWeight(e1, weight) >> If(error) return null else return the edge. >> } >> >> I am sorry if my reply is brief but I am a bit busy right now. If you >> need more detailed instructions feel free to reply. >> >> -----Original Message----- >> From: fee...@gm... [mailto:fee...@gm...] >> Sent: Wednesday, July 01, 2015 4:05 PM >> To: jgr...@li... >> Subject: [jgrapht-users] Edge weights >> >> Hi there, >> >> I’m a newbie using Jgrapht… .My problem has to do with a large weighted >> graph (about 2000 edges) and the assignation of its weights. >> >> All I wanna ask is whether or not weights for a graph can be assigned >> dynamically (a loop) rather than static (one by on)...like: >> >> DefaultWeightedEdge e1 = graph.addEdge("vertex1", "vertex2”); >> graph.setEdgeWeight(e1, 5); >> >> (I’d have to write this thousand times…. ) >> >> >> Thanks. >> >> Phil >> >> >> >> ------------------------------------------------------------------------------ >> Don't Limit Your Business. Reach for the Cloud. >> GigeNET's Cloud Solutions provide you with the tools and support that you >> need to offload your IT needs and focus on growing your business. >> Configured For All Businesses. Start Your Cloud Today. >> https://www.gigenetcloud.com/ >> _______________________________________________ >> jgrapht-users mailing list >> jgr...@li... >> https://lists.sourceforge.net/lists/listinfo/jgrapht-users >> >> >> >> ------------------------------------------------------------------------------ >> Don't Limit Your Business. Reach for the Cloud. >> GigeNET's Cloud Solutions provide you with the tools and support that >> you need to offload your IT needs and focus on growing your business. >> Configured For All Businesses. Start Your Cloud Today. >> https://www.gigenetcloud.com/ >> _______________________________________________ >> jgrapht-users mailing list >> jgr...@li... >> https://lists.sourceforge.net/lists/listinfo/jgrapht-users >> > > > > > ------------------------------------------------------------------------------ > Don't Limit Your Business. Reach for the Cloud. > GigeNET's Cloud Solutions provide you with the tools and support that > you need to offload your IT needs and focus on growing your business. > Configured For All Businesses. Start Your Cloud Today. > https://www.gigenetcloud.com/ > _______________________________________________ > jgrapht-users mailing list > jgr...@li... > https://lists.sourceforge.net/lists/listinfo/jgrapht-users > > |
From: <fee...@gm...> - 2015-07-02 14:13:27
|
Thank you guys for your replies… I’ve made some changes in my simple code taking into account your advice…..however I’m still getting this error: Exception in thread "main" java.lang.IllegalArgumentException: loops not allowed ÏÏ§Ï at org.jgrapht.graph.AbstractBaseGraph.addEdge(AbstractBaseGraph.java:243) ÏÏ§Ï at org.jgrapht.Graphs.addEdge(Graphs.java:88) ÏÏ§Ï at JGraphTestDirected.main(JGraphTestDirected.java:77) My plan is simple…take a matrix with weights…….two for loops to go through it for creating edges and adding weights. any help will be appreciated. Phil > On 1/07/2015, at 7:26 pm, Joris Kinable <de...@gm...> wrote: > > Three ways to add weighted edges: > > 1. Use the graph itself: > DefaultWeightedEdge e=graph.addEdge(V vertex1, V vertex2); > graph.setEdgeWeight(e, double weight); > > 2. Use one of the following methods in the Graphs package: > Graphs.addAllEdges(Graph<? super V,? super E> destination, Graph<V,E> source, Collection<? extends E> edges) > Graphs.addEdge(Graph<V,E> g, V sourceVertex, V targetVertex, double weight) > Graphs.addEdgeWithVertices(Graph<V,E> targetGraph, Graph<V,E> sourceGraph, E edge, double weight) > > 3. Use the Graph Builder which was added to the latest version of jgrapht: > SimpleWeightedGraph<String, DefaultWeightedEdge> builtWeightedGraph = > SimpleWeightedGraph.<String, DefaultWeightedEdge> > builder(DefaultWeightedEdge.class) > .addEdge(v1, v2, 1.0) > .addEdge(v1, v2, 2.0) > .addEdge(v3, v4, 3.0) > .addEdge(v2, v4, 2.0) > .build(); > > > br, > > Joris Kinable > > On Wed, Jul 1, 2015 at 7:13 PM, Rushang Karia <rus...@ho... <mailto:rus...@ho...>> wrote: > I am at work right now and do not remember if such a function exists (not worked on weighted graphs a lot). I guess there should be such a function since your problem is quite intuitive. > > However, > If no such function exists then you could overload the addEdge() to specify a weight for the WeightedGraph. > The function would be > > DefaultWeightedEdge <V, E> addEdge(V v1, V v2, E weight) > { > DefaultWeightedEdge e1 = super.addEdge(v1, v2); > this.setEdgeWeight(e1, weight) > If(error) return null else return the edge. > } > > I am sorry if my reply is brief but I am a bit busy right now. If you need more detailed instructions feel free to reply. > > -----Original Message----- > From: fee...@gm... <mailto:fee...@gm...> [mailto:fee...@gm... <mailto:fee...@gm...>] > Sent: Wednesday, July 01, 2015 4:05 PM > To: jgr...@li... <mailto:jgr...@li...> > Subject: [jgrapht-users] Edge weights > > Hi there, > > I’m a newbie using Jgrapht… .My problem has to do with a large weighted graph (about 2000 edges) and the assignation of its weights. > > All I wanna ask is whether or not weights for a graph can be assigned dynamically (a loop) rather than static (one by on)...like: > > DefaultWeightedEdge e1 = graph.addEdge("vertex1", "vertex2”); graph.setEdgeWeight(e1, 5); > > (I’d have to write this thousand times…. ) > > > Thanks. > > Phil > > > ------------------------------------------------------------------------------ > Don't Limit Your Business. Reach for the Cloud. > GigeNET's Cloud Solutions provide you with the tools and support that you need to offload your IT needs and focus on growing your business. > Configured For All Businesses. Start Your Cloud Today. > https://www.gigenetcloud.com/ <https://www.gigenetcloud.com/> > _______________________________________________ > jgrapht-users mailing list > jgr...@li... <mailto:jgr...@li...> > https://lists.sourceforge.net/lists/listinfo/jgrapht-users <https://lists.sourceforge.net/lists/listinfo/jgrapht-users> > > > ------------------------------------------------------------------------------ > Don't Limit Your Business. Reach for the Cloud. > GigeNET's Cloud Solutions provide you with the tools and support that > you need to offload your IT needs and focus on growing your business. > Configured For All Businesses. Start Your Cloud Today. > https://www.gigenetcloud.com/ <https://www.gigenetcloud.com/> > _______________________________________________ > jgrapht-users mailing list > jgr...@li... <mailto:jgr...@li...> > https://lists.sourceforge.net/lists/listinfo/jgrapht-users <https://lists.sourceforge.net/lists/listinfo/jgrapht-users> > |
From: Joris K. <de...@gm...> - 2015-07-01 23:26:21
|
Three ways to add weighted edges: 1. Use the graph itself: DefaultWeightedEdge e=graph.addEdge(V vertex1, V vertex2); graph.setEdgeWeight(e, double weight); 2. Use one of the following methods in the Graphs package: Graphs.addAllEdges(Graph<? super V,? super E> destination, Graph<V,E> source, Collection<? extends E> edges) Graphs.addEdge(Graph<V,E> g, V sourceVertex, V targetVertex, double weight) Graphs.addEdgeWithVertices(Graph<V,E> targetGraph, Graph<V,E> sourceGraph, E edge, double weight) 3. Use the Graph Builder which was added to the latest version of jgrapht: SimpleWeightedGraph<String, DefaultWeightedEdge> builtWeightedGraph = SimpleWeightedGraph.<String, DefaultWeightedEdge> builder(DefaultWeightedEdge.class) .addEdge(v1, v2, 1.0) .addEdge(v1, v2, 2.0) .addEdge(v3, v4, 3.0) .addEdge(v2, v4, 2.0) .build(); br, Joris Kinable On Wed, Jul 1, 2015 at 7:13 PM, Rushang Karia <rus...@ho...> wrote: > I am at work right now and do not remember if such a function exists (not > worked on weighted graphs a lot). I guess there should be such a function > since your problem is quite intuitive. > > However, > If no such function exists then you could overload the addEdge() to > specify a weight for the WeightedGraph. > The function would be > > DefaultWeightedEdge <V, E> addEdge(V v1, V v2, E weight) > { > DefaultWeightedEdge e1 = super.addEdge(v1, v2); > this.setEdgeWeight(e1, weight) > If(error) return null else return the edge. > } > > I am sorry if my reply is brief but I am a bit busy right now. If you need > more detailed instructions feel free to reply. > > -----Original Message----- > From: fee...@gm... [mailto:fee...@gm...] > Sent: Wednesday, July 01, 2015 4:05 PM > To: jgr...@li... > Subject: [jgrapht-users] Edge weights > > Hi there, > > I’m a newbie using Jgrapht… .My problem has to do with a large weighted > graph (about 2000 edges) and the assignation of its weights. > > All I wanna ask is whether or not weights for a graph can be assigned > dynamically (a loop) rather than static (one by on)...like: > > DefaultWeightedEdge e1 = graph.addEdge("vertex1", "vertex2”); > graph.setEdgeWeight(e1, 5); > > (I’d have to write this thousand times…. ) > > > Thanks. > > Phil > > > > ------------------------------------------------------------------------------ > Don't Limit Your Business. Reach for the Cloud. > GigeNET's Cloud Solutions provide you with the tools and support that you > need to offload your IT needs and focus on growing your business. > Configured For All Businesses. Start Your Cloud Today. > https://www.gigenetcloud.com/ > _______________________________________________ > jgrapht-users mailing list > jgr...@li... > https://lists.sourceforge.net/lists/listinfo/jgrapht-users > > > > ------------------------------------------------------------------------------ > Don't Limit Your Business. Reach for the Cloud. > GigeNET's Cloud Solutions provide you with the tools and support that > you need to offload your IT needs and focus on growing your business. > Configured For All Businesses. Start Your Cloud Today. > https://www.gigenetcloud.com/ > _______________________________________________ > jgrapht-users mailing list > jgr...@li... > https://lists.sourceforge.net/lists/listinfo/jgrapht-users > |
From: Rushang K. <rus...@ho...> - 2015-07-01 23:13:38
|
I am at work right now and do not remember if such a function exists (not worked on weighted graphs a lot). I guess there should be such a function since your problem is quite intuitive. However, If no such function exists then you could overload the addEdge() to specify a weight for the WeightedGraph. The function would be DefaultWeightedEdge <V, E> addEdge(V v1, V v2, E weight) { DefaultWeightedEdge e1 = super.addEdge(v1, v2); this.setEdgeWeight(e1, weight) If(error) return null else return the edge. } I am sorry if my reply is brief but I am a bit busy right now. If you need more detailed instructions feel free to reply. -----Original Message----- From: fee...@gm... [mailto:fee...@gm...] Sent: Wednesday, July 01, 2015 4:05 PM To: jgr...@li... Subject: [jgrapht-users] Edge weights Hi there, I’m a newbie using Jgrapht… .My problem has to do with a large weighted graph (about 2000 edges) and the assignation of its weights. All I wanna ask is whether or not weights for a graph can be assigned dynamically (a loop) rather than static (one by on)...like: DefaultWeightedEdge e1 = graph.addEdge("vertex1", "vertex2”); graph.setEdgeWeight(e1, 5); (I’d have to write this thousand times…. ) Thanks. Phil ------------------------------------------------------------------------------ Don't Limit Your Business. Reach for the Cloud. GigeNET's Cloud Solutions provide you with the tools and support that you need to offload your IT needs and focus on growing your business. Configured For All Businesses. Start Your Cloud Today. https://www.gigenetcloud.com/ _______________________________________________ jgrapht-users mailing list jgr...@li... https://lists.sourceforge.net/lists/listinfo/jgrapht-users |
From: <fee...@gm...> - 2015-07-01 22:02:56
|
Hi there, I’m a newbie using Jgrapht… .My problem has to do with a large weighted graph (about 2000 edges) and the assignation of its weights. All I wanna ask is whether or not weights for a graph can be assigned dynamically (a loop) rather than static (one by on)...like: DefaultWeightedEdge e1 = graph.addEdge("vertex1", "vertex2”); graph.setEdgeWeight(e1, 5); (I’d have to write this thousand times…. ) Thanks. Phil |
From: Joris K. <de...@gm...> - 2015-06-29 14:00:00
|
great! thnx. Joris On Sat, Jun 27, 2015 at 4:41 PM, John Sichi <js...@gm...> wrote: > On Thu, Jun 25, 2015 at 11:18 PM, John Sichi <js...@gm...> wrote: > >> On Tue, Jun 23, 2015 at 8:36 AM, Joris Kinable <de...@gm...> wrote: >> >>> a. Is there a particular reason I cannot find these classes in the >>> javadoc linked from jgrapht's website: http://jgrapht.org/javadoc/. >>> Could it be that the javadoc hasn't been updated with the latest release of >>> jgrapht? >>> >> >> Looks like I must have screwed up the Javadoc refresh when I released >> 0.9.1, since it still says 0.9.0. I'll look into that. >> > > I've redone the refresh, correctly this time :) > > |
From: John S. <js...@gm...> - 2015-06-27 20:41:36
|
On Thu, Jun 25, 2015 at 11:18 PM, John Sichi <js...@gm...> wrote: > On Tue, Jun 23, 2015 at 8:36 AM, Joris Kinable <de...@gm...> wrote: > >> a. Is there a particular reason I cannot find these classes in the >> javadoc linked from jgrapht's website: http://jgrapht.org/javadoc/. >> Could it be that the javadoc hasn't been updated with the latest release of >> jgrapht? >> > > Looks like I must have screwed up the Javadoc refresh when I released > 0.9.1, since it still says 0.9.0. I'll look into that. > I've redone the refresh, correctly this time :) |
From: John S. <js...@gm...> - 2015-06-27 20:37:00
|
Nice work! On Fri, Jun 26, 2015 at 6:23 AM, Daniel Murygin <dan...@gm...> wrote: > I wrote a blog post about how to get a JGraphT graph object as a > result from a Neo4j Cypher query. If you are interested you can read > more here: https://murygin.wordpress.com/2015/06/25/neo4j-cypher-jgrapht/ > > Have a nice weekend! > - Daniel > > -- > Daniel Murygin - dan...@gm... > > > ------------------------------------------------------------------------------ > Monitor 25 network devices or servers for free with OpManager! > OpManager is web-based network management software that monitors > network devices and physical & virtual servers, alerts via email & sms > for fault. Monitor 25 devices for free with no restriction. Download now > http://ad.doubleclick.net/ddm/clk/292181274;119417398;o > _______________________________________________ > jgrapht-users mailing list > jgr...@li... > https://lists.sourceforge.net/lists/listinfo/jgrapht-users > |
From: Szabolcs B. <bes...@gm...> - 2015-06-26 17:48:34
|
I'd love to help y ou with the review. Regards, Besenyei Szabolcs 2015-06-26 17:57 GMT+02:00 Joris Kinable <de...@gm...>: > Ok, I'll go over some of them in the next few weeks. > > Thanks for your feedback :) > > Joris > > On Fri, Jun 26, 2015 at 2:26 AM, John Sichi <js...@gm...> wrote: > >> On Thu, Jun 25, 2015 at 9:53 AM, Joris Kinable <de...@gm...> wrote: >> >>> There are several old jgrapht merge requests including some A* search >>> implementations, dating back to 2012. What's happening with those? Can we >>> review/accept/reject them or is there a particular reason they are still >>> out there? >>> >> >> If you'd like to do the review, go ahead and add your comments, and if >> one of them gets to an acceptable state, let me know and I can merge the >> pull request. Looks like only one of them has a unit test at the moment. >> >> Likewise for other open mergeable pull requests. >> >> > > > ------------------------------------------------------------------------------ > Monitor 25 network devices or servers for free with OpManager! > OpManager is web-based network management software that monitors > network devices and physical & virtual servers, alerts via email & sms > for fault. Monitor 25 devices for free with no restriction. Download now > http://ad.doubleclick.net/ddm/clk/292181274;119417398;o > _______________________________________________ > jgrapht-users mailing list > jgr...@li... > https://lists.sourceforge.net/lists/listinfo/jgrapht-users > > |
From: Joris K. <de...@gm...> - 2015-06-26 15:57:52
|
Ok, I'll go over some of them in the next few weeks. Thanks for your feedback :) Joris On Fri, Jun 26, 2015 at 2:26 AM, John Sichi <js...@gm...> wrote: > On Thu, Jun 25, 2015 at 9:53 AM, Joris Kinable <de...@gm...> wrote: > >> There are several old jgrapht merge requests including some A* search >> implementations, dating back to 2012. What's happening with those? Can we >> review/accept/reject them or is there a particular reason they are still >> out there? >> > > If you'd like to do the review, go ahead and add your comments, and if one > of them gets to an acceptable state, let me know and I can merge the pull > request. Looks like only one of them has a unit test at the moment. > > Likewise for other open mergeable pull requests. > > |
From: Daniel M. <dan...@gm...> - 2015-06-26 13:23:57
|
I wrote a blog post about how to get a JGraphT graph object as a result from a Neo4j Cypher query. If you are interested you can read more here: https://murygin.wordpress.com/2015/06/25/neo4j-cypher-jgrapht/ Have a nice weekend! - Daniel -- Daniel Murygin - dan...@gm... |
From: H.N. de R. <hnr...@gr...> - 2015-06-26 07:25:35
|
On Tue, Jun 23, 2015 at 01:27:23PM -0400, Joris Kinable wrote: > Hm, I remember seeing that thread. The two solutions proposed were: > > 1. Create 2 graphs, a directed and an undirected graph, and create a > GraphUnion from these two graphs. This approach has 2 major disadvantages: > > 2. To represent an undirected edge e=(i,j) in a directed graph, create 2 > edge objects, say e1 and e2, which contain the same information, and add > > So far, neither of these approaches seem desirable. Any remarks on this? What is your actual goal? Create a mixed graph without going through the hassle of implementing a MixedGraph class, or using the same object for two edges in a graph, as the original post said? Ernst -- Information System on Graph Classes and their Inclusions (ISGCI) http://www.graphclasses.org |
From: John S. <js...@gm...> - 2015-06-26 06:26:17
|
On Thu, Jun 25, 2015 at 9:53 AM, Joris Kinable <de...@gm...> wrote: > There are several old jgrapht merge requests including some A* search > implementations, dating back to 2012. What's happening with those? Can we > review/accept/reject them or is there a particular reason they are still > out there? > If you'd like to do the review, go ahead and add your comments, and if one of them gets to an acceptable state, let me know and I can merge the pull request. Looks like only one of them has a unit test at the moment. Likewise for other open mergeable pull requests. |
From: John S. <js...@gm...> - 2015-06-26 06:18:28
|
On Tue, Jun 23, 2015 at 8:36 AM, Joris Kinable <de...@gm...> wrote: > a. Is there a particular reason I cannot find these classes in the javadoc > linked from jgrapht's website: http://jgrapht.org/javadoc/. Could it be > that the javadoc hasn't been updated with the latest release of jgrapht? > Looks like I must have screwed up the Javadoc refresh when I released 0.9.1, since it still says 0.9.0. I'll look into that. > b. Perhaps a bit of a sensitive point: I'm not entirely sure what these > classes add to jgrapht? The majority of methods in these builder classes > were already supported by the default graph classes, or through the Graphs > class. The only new method I can really see is: 'addEdgeChain(V first, V > second, V ... rest). I would recommend to add this method to the Graphs > class, and, unless there's a valid use for these builder classes, consider > to remove them from jgrapht. > The rationale was in this pull request: https://github.com/jgrapht/jgrapht/pull/115 I tend to think that builders are mostly superfluous in general (not just in this case), but it's a matter of taste. |
From: Joris K. <de...@gm...> - 2015-06-25 16:53:55
|
There are several old jgrapht merge requests including some A* search implementations, dating back to 2012. What's happening with those? Can we review/accept/reject them or is there a particular reason they are still out there? br, Joris Kinable |