mirror of
https://github.com/UnickSoft/graphonline.git
synced 2025-07-02 07:46:17 +00:00
Up max vertex number
This commit is contained in:
parent
320de9f399
commit
1de5a3128b
@ -22,10 +22,12 @@ function Graph()
|
||||
|
||||
// infinity
|
||||
Graph.prototype.infinity = 1E8;
|
||||
// Max vertexes
|
||||
Graph.prototype.maxVertexes = 1000;
|
||||
|
||||
Graph.prototype.AddNewVertex = function(vertex)
|
||||
{
|
||||
if (this.vertices.length < 300)
|
||||
if (this.vertices.length <= this.maxVertexes)
|
||||
{
|
||||
vertex.SetId (this.uidGraph);
|
||||
this.uidGraph = this.uidGraph + 1;
|
||||
|
Loading…
x
Reference in New Issue
Block a user