-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbfsModel.cs
More file actions
37 lines (33 loc) · 1.05 KB
/
bfsModel.cs
File metadata and controls
37 lines (33 loc) · 1.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace BFS_Algorithm
{
class bfsModel
{
int queryId;
int nodes;
int edges;
int sourceNode;
List<verticeModel> vertices;
public bfsModel()
{
vertices = new List<verticeModel>();
}
public bfsModel(int queryId, int nodes, int edges, int sourceNode, List<verticeModel> vertices)
{
this.queryId = queryId;
this.nodes = nodes;
this.edges = edges;
this.vertices = vertices;
this.SourceNode = sourceNode;
}
public int QueryId { get => queryId; set => queryId = value; }
public int Nodes { get => nodes; set => nodes = value; }
public int Edges { get => edges; set => edges = value; }
public int SourceNode { get => sourceNode; set => sourceNode = value; }
internal List<verticeModel> Vertices { get => vertices; set => vertices = value; }
}
}