Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 
Share Thread:
Reddit Facebook Twitter
Selection Groups
04-19-2015, 02:40 PM (This post was last modified: 04-19-2015 02:43 PM by ggaliens.)
Post: #3
RE: Selection Groups
A rough sample of how to add ... (code below has not been compiled or determined to be syntactically correct.
Code:
SSELS = St0#st.ssels,

WeID = % YOU FIGURE IT OUT

MyAcc = fun(_Idx,Acc) ->
     StrIdx = lists:flatten( io_lib:format("group_~p",[_Idx])),
     SetVs =GetSet(_Idx, WeID), %% you must write this function
     Key = {vertex,StrIdx},
     Value = [{WeID, SetVs}]
     gb_trees:enter((Key,Value,Acc),
end,
SSELS2 = lists:foldl(MyAcc, SSELS, lists:seq(1,100)),

St0#st{ssels=SSELS2}
Reply


Messages In This Thread
Selection Groups - Namrata - 04-19-2015, 01:00 AM
RE: Selection Groups - micheus - 04-19-2015, 01:14 AM
RE: Selection Groups - ggaliens - 04-19-2015 02:40 PM

Forum Jump:


User(s) browsing this thread: 1 Guest(s)