@name Nodegraph Converter
@inputs
@outputs N Count [Nodes Nodes2]:table [Filename File]:string Status
@persist [Nodes Nodes2]:table [File S]:string N Count
@trigger 
interval(1000)
if(first()){
    Nodes2=table()
    N=0
    S="S"
}
Map="gm_urbancity"

First="nodegraphs/nodegraph_3_"
Second="nodegraphs/nodegraph_4_"
Filename=First+Map+".txt"
File=fileRead()
Status=fileStatus()
if(!File){
    fileLoad(Filename)
}
#if(!Nodes:count()){
    Nodes=glonDecodeOldTable(File)
    fileWrite(Second+Map+".txt",glonEncode(Nodes))
    #Count=round(Nodes:count()/2)
#}
runOnFile(1)
#
#if(Nodes:count()){
#    if(N<=Count&!perf()){timer("resume",10)}
#    while(N<=Count&perf()){
#        NS=toString(N)
#        V=Nodes[NS,vector]
#        Str=Nodes[S+NS,string]
#        A=array()
#        A=Str:explode("<")
#        A:insertVector(2,V)
#        A[1,number]=A[1,string]:toNumber()
#        Nodes2:pushArray(A)
#        N++
#    }
#}
#if(N>=Count){
#    fileWrite("nodegraphs/nodegraphs_4_"+Map+".txt",glonEncode(Nodes2))
#}
