last day (30 days later) » 

5:16 PM
3
A: using property maps for equivalence in vf2_sub_graph_iso

seheOk, let's dissect the documentation. In order to pass non-default implementations for EdgeEquivalencePredicate and VertexEquivalencePredicate you need the second overload: bool vf2_subgraph_iso(const GraphSmall& graph_small, const GraphLarge& graph_large, SubGraphIsoMapCallback user...

 
Thank you for your answer, but how to make this work work every time I call just vf2_graph_iso (without making all this in main)?
 
"all this"? I don't get it: it's not much. Also, no you cannot skip on passing the functors if you requirement. Make up your mind (do you want to pass them, or not?). Of course you can wrap it: Live On Coliru. But I had assumed your question wasn't about writing elementary functions in C++ :S
 
Thank you @sehe unfortunately it is not taking labels in consideration.
 
That's not unfortunate. That's not true. Anyhoops, why don't so describe exactly what you require/expect?
 
check the update please.
 
5:16 PM
@user3101913 check the output please
 
Please use the 2 graphs file as I mentionned in the Update part.
 
@user3101913 Please start by reading. Properly. That way we'll both waste a lot less time
@Cicada Oops. Sorry. I see I accidentally changed vf2_subgraph_iso into vf2_graph_iso - but it makes no difference here. Thanks for the admonition
 
@sehe in the output it gives false but in when I run it in CodeBlocks it gives true.
@Cicada I'm using the 2 graphs file (check the update part in my first post ) so it most return false.
 
@Cicada you're free to stop now :S
@user3101913 Okay. I think it's time to add some error handling to the reading code. I suggest you look at the code I already gave some months ago. Sadly, I can't find it anymore. Is there /yet/ another account besides KHALDOUN Mohsen you've been posting as?
@user3101913 Ah, yes: found it. My answer to copying edges with adjacent vertices and their properties using BOOST contained a complete rewrite/simplification of the reading code.
 
@sehe I dont think that the problem is in reading code, I think there is something wrong in the property maps equivalence of vertices an edges.
 
5:16 PM
How would you explain the fact that the result is differentt on Coliru?
 
@sehe please check the code and test it (but not in Coliru) if it is possible.
 
@user3101913 what for? Are you still wasting time? (Hint: I don't write my code on Coliru, in case you thought so)
 
@sehe I changed the reading code as you mentionned but I still don't understand why it gives me true ? what should I do ! PS: in coliru you added a line TEST in the .txt file
 
No. That's just the way bash knows input ends
 
 
2 hours later…
7:34 PM
Interestingly, there's a difference between boost versions. Looking into it
 
8:09 PM
I'm working with Boost 1_57_0
 
@user3101913 Huh. That's strange. I just found it results in the correct answer in 1.56, not in 1.55. The relevant commits:
> f53d02e Added updates from Flavio De Lorenzi to vf2_sub_graph_iso code
> 0c2db20 Added VF2 subgraph isomorphism algorithm from Flavio De Lorenzi and Vomel Christof
> ebdec45 Added test for Boost.Parameter version of isomorphism; fixed bugs that found
> 7d3b9f0 Qualified call to isomorphism
> c416132 Fixed HTML documentation for isomorphism algorithm; refs #5633
> d44293d Fixed buffer overflow from parallel edges in isomorphism(); fixes #5175
That's between 1.55 and 1.56
Checking whether 1.57 regressed now; nope; 1.58 was already ok (it's the version I use for dev)
@user3101913 So, I'm tempted to guess you might not actually be using 1_57_0. Can you post the exact build command and e.g. add this:
#include <boost/version.hpp>
//==============================M A I N   P R O G R A M========
int main() {
    std::cout << BOOST_VERSION << "\n";
 
8:24 PM
104500
 
So, you're actually using boost 1.45
 
this is what I've got as a result
 
This is probably the system/distribution packaged version.
 
Yes, I'm using Ubuntu 14.04
 
If you want to use another version you installed manually, you need to specify the include/library paths
 
8:26 PM
I will try to make this and I will give you what I will get.
 
0
A: How to compile boost async_client.cpp

seheE.g. clang++ -std=c++03 -Wall -pedantic -g -O2 async_client.cpp -o async_client -lboost_system -lboost_thread -lpthread Assuming your system's packaged version of Boost (or pre-configured include & lib paths). To make use of your custom built Boost library tree in ~/custom/boost: clang++ -std...

this could help
 
Sorry, I didn't understand
 
Then please disregard. Configure your build in anywhich way you usually do
 
I putted the Boost 1_57 file in the same place as the previous one, I changed the program
I run it and I still got ; 104500
 
> I putted the Boost 1_57 file in the same place as the previous one
@user3101913 What previous one? What makes you think that's the one being used?
 
8:36 PM
I mean that I replaced the one that was in the program file
manually
 
> the one that was in the program file
@user3101913 what does that mean?
You have to extract the archive somewhere. And then you have to make your project use it
This is universally true regardless of which IDE you use. C++ compilation model dictates it.
 
thats what I mean
I'm using
CodeBlocks
 
Yawn. You told me that.
4 mins ago, by sehe
@user3101913 What previous one? What makes you think that's the one being used?
^ the latter part
Also this:
26 mins ago, by sehe
@user3101913 So, I'm tempted to guess you might not actually be using 1_57_0. Can you post the exact build command and e.g. add this:
These are the questions that matter. You can manually copy all day, but it will have no effect unless you use the right config and locations
 
How can I do that in CodeBlocks?
 
Huh? How can you answer the questions in CodeBlock? You don't :)
About using CodeBlocks, though, there's bound to be dozens of questions on Stack Overflow
 
8:45 PM
Ok, Can I do that with the command line?
 
Do what? I linked an answer before that shows examples with explanation.
I'm off to bed. Good luck
 
Thank your, good night.
Can I solve the problem with my actual version 1_45 ?
 
@user3101913 I don't see why. Lots of issues were fixed later. Don't use old broken versions.
(of course you can implement your own algorithms)
 

  last day (30 days later) »