Skip to content

Commit d813a56

Browse files
committed
💾 Feat: Add IGraph interface and GraphTypes enum
1 parent f5bd802 commit d813a56

File tree

2 files changed

+26
-0
lines changed

2 files changed

+26
-0
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using System.Linq;
4+
using System.Text;
5+
using System.Threading.Tasks;
6+
7+
namespace Common.Algorithm.Core.DataStructure.Graph;
8+
9+
internal interface IGraph
10+
{
11+
bool IsTotallyConnected { get; set; }
12+
13+
GraphTypes Type { get; set; }
14+
}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using System.Linq;
4+
using System.Text;
5+
using System.Threading.Tasks;
6+
7+
public enum GraphTypes
8+
{
9+
Directed = 1,
10+
Undirected = 2,
11+
Mixed = 4,
12+
}

0 commit comments

Comments
 (0)