colors - Bipartite Graph (undirected) -


I'm taking an input, e.g. 4 1 3 1 2 2 4

The first row is the number of nodes, after which are the sides of the edges. I have to try to paint the graph, and if I can not, then I need to list one cycle in the graph from which the error is happening.

It is still fine, except one graph, 1,000,000 nodes every time I try to use it, I get a stack overflow error, even if I made it more streamlined, and for 1024m Raised the maximum size of the eclipse.

I am not asking for codes, I am doing something wrong in order to keep errors happening.

Perhaps you can customize your circle detection algorithm. It can help you:

Apart from this, even a million nodes can contain satensency matrix, too much to handle at one go, so perhaps to load some parts of the graph There is a way. / P>


Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -