Skip to content

Commit

Permalink
部分txt输出修正
Browse files Browse the repository at this point in the history
  • Loading branch information
neomax24 committed May 11, 2016
1 parent ce88be9 commit e7e4e41
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 806 deletions.
7 changes: 5 additions & 2 deletions algorithm2byWang/algorithm2byWang/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ static void Main(string[] args)
KeyValuePair<string, UInt64> node1;
KeyValuePair<string, UInt64> node2;
node1 = new KeyValuePair<string, UInt64>("Id", 2126125555);
node2 = new KeyValuePair<string, UInt64>("Id", 2060367530);
node2 = new KeyValuePair<string, UInt64>("AA.AuId", 2165875728);
test.solve(node1, node2);
sw.Flush();
sw.Close();
Expand Down Expand Up @@ -272,6 +272,8 @@ public List<List<UInt64>> solve(KeyValuePair<string,UInt64> srcNode,KeyValuePair
{
if (lastNodeOfDstHash.Contains(Convert.ToUInt64(t.Value)))
{
if (t.Key == "AfId")
continue;
pathList.Add(new List<ulong>() { srcNode.Value, selectedId, Convert.ToUInt64(t.Value), dstNode.Value });
Console.WriteLine("3-hop:{0}-{1}-{2}-{3}", srcNode,new KeyValuePair<string, UInt64>("Id",selectedId), t, dstNode);
}
Expand Down Expand Up @@ -299,7 +301,7 @@ public List<List<UInt64>> solve(KeyValuePair<string,UInt64> srcNode,KeyValuePair
if (lastNodeOfDstHash.Contains(Convert.ToUInt64(t.Value)))
{
pathList.Add(new List<ulong>() { srcNode.Value, Convert.ToUInt64(t.Value), selectedId, dstNode.Value });
Console.WriteLine("3-hop:{0}-{1}-{2}-{3}", t, srcNode,new KeyValuePair<string, UInt64>("Id",selectedId), dstNode);
Console.WriteLine("3-hop:{0}-{1}-{2}-{3}", srcNode,t, new KeyValuePair<string, UInt64>("Id",selectedId), dstNode);
}
}
continue;
Expand Down Expand Up @@ -370,6 +372,7 @@ public List<List<UInt64>> solve(KeyValuePair<string,UInt64> srcNode,KeyValuePair
}
});
#endregion

//3-hop
if (srcNode.Key == "Id")
threeHop_str1.Start();
Expand Down
Loading

0 comments on commit e7e4e41

Please sign in to comment.