Skip to content

Commit

Permalink
Modificatin of generation random Hypergraph
Browse files Browse the repository at this point in the history
Modification of RandomHypergraph to make the number of links between Edges and Vertex equal to (nbVertex * nbEdge).
  • Loading branch information
alex-87 committed Oct 19, 2015
1 parent 854e188 commit 235d328
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/client/RandomHypergraphe.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ RandomHypergraphe::generateHypergraphe(unsigned int nbVertex, unsigned int nbEdg
for(unsigned int j=0; j<nbEdge; j++)
listEdge.push_back( HyperFactory::newHyperEdge() );

for(unsigned int u=0; u<(nbVertex * nbEdge) / 2; u++) {
for(unsigned int u=0; u<(nbVertex * nbEdge); u++) {
if( u % 3 == 0 ) {
int n = getRand();
HyperFactory::link( listVertex.at((u+n)%nbVertex), listEdge.at((u*n)%nbEdge) );
Expand Down

0 comments on commit 235d328

Please sign in to comment.