Professional Documents
Culture Documents
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
namespace dijkstra
{
class Program
{
static int N;
static int[,] E;
N = int.Parse(SR.ReadLine());
E = new int[N, N];
F.Close();
//---------------------------------------------------------------
int SourceNode = 1;
d[SourceNode] = 0;
//=====================================================
namespace ShortestPath
{
class Path
{
private List<int> path;
//=====================================================
class Program
{
static int N;
static int[,] E;
N = int.Parse(SR.ReadLine());
E = new int[N, N];
}
F.Close();
//---------------------------------------------------------------
int min=0;
//---------------------------------------------------------
private static List<Path> FindAllPaths(int A, int B, List<int>
NodeList)
{
List<Path> L = new List<Path>();
if (A == B)
{
L.Add(new Path(A));
}
else
{
int PosOfA = NodeList.IndexOf(A);
NodeList.Remove(A);
NodeList.Insert(PosOfA, A);
}
return L;
}
}
}
Graph1.txt
5
0,1,0,1,0
1,0,1,0,1
0,1,0,1,0
1,0,1,0,1
0,1,0,1,0