Re: [jgrapht-users] Non-cyclical Hamiltonian?
Brought to you by:
barak_naveh,
perfecthash
From: Darrell E. <de...@so...> - 2013-09-29 05:35:39
|
Sure -- but there is a HamiltonianCycle class in JGraphT which can give an approximate optimal tour. It seems like (to the untrained eye), it's a small step to take that and remove the cyclical requirement (thus making it just a hamiltonian path), and being able to specify a start node. On Sat, Sep 28, 2013 at 10:21 PM, Chris Esposito <chr...@gm...>wrote: > Determining the existence of Hamiltonian paths in graphs is NP-Complete, > so if the graph is not small the only advice I'd offer is "have patience" > :-) > > Sent from my iPad > > On Sep 28, 2013, at 10:13 PM, Darrell Esau <de...@so...> wrote: > > > Hi all, > > > > Is there a way to get a hamiltonian cycle for a given node, but not > actually a cycle? > > > > Given a graph and a starting node, I'd like to find a path that will > cover each node exactly once, but not returning to the origin. > > > > Any advice? > > > > Thanks! > > -darrell > > > ------------------------------------------------------------------------------ > > October Webinars: Code for Performance > > Free Intel webinars can help you accelerate application performance. > > Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most > from > > the latest Intel processors and coprocessors. See abstracts and register > > > > > http://pubads.g.doubleclick.net/gampad/clk?id=60133471&iu=/4140/ostg.clktrk > > _______________________________________________ > > jgrapht-users mailing list > > jgr...@li... > > https://lists.sourceforge.net/lists/listinfo/jgrapht-users > |