-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtypes.ts
More file actions
36 lines (30 loc) · 810 Bytes
/
types.ts
File metadata and controls
36 lines (30 loc) · 810 Bytes
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
export interface ISMElement {
id: string;
name: string;
description?: string;
category?: string;
}
export enum SSIMValue {
V = 'V', // i reaches j
A = 'A', // j reaches i
X = 'X', // Both reach each other
O = 'O', // No relation
}
export type SSIMData = Record<string, Record<string, SSIMValue>>;
export type BinaryMatrix = number[][];
export interface LevelPartition {
level: number;
elements: number[]; // Indices of elements
}
export interface ISMResult {
initialReachabilityMatrix: BinaryMatrix;
finalReachabilityMatrix: BinaryMatrix; // After transitivity
canonicalMatrix: BinaryMatrix; // Skeleton matrix for graph (transitive reduction)
levels: LevelPartition[];
}
export enum AppStep {
SETUP_TOPIC = 0,
DEFINE_FACTORS = 1,
FILL_SSIM = 2,
ANALYSIS_RESULT = 3,
}