-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Subset stage 4: Multi cycles in the same SCC #155
* Added support for multi-cycles in the same strongly connected component * It support only cases where only one group of cycles (grouped by vertexes (tables)) found
- Loading branch information
Showing
4 changed files
with
417 additions
and
79 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
package subset | ||
|
||
import "github.com/greenmaskio/greenmask/internal/db/postgres/entries" | ||
|
||
type CycleEdge struct { | ||
id int | ||
from string | ||
to string | ||
tables []*entries.Table | ||
} | ||
|
||
func NewCycleEdge(id int, from, to string, tables []*entries.Table) *CycleEdge { | ||
if len(tables) == 0 { | ||
panic("empty tables provided for cycle edge") | ||
} | ||
return &CycleEdge{ | ||
id: id, | ||
from: from, | ||
to: to, | ||
tables: tables, | ||
} | ||
} |
Oops, something went wrong.