dda

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 28, 2019 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package dda provides the implementation of Degree Decomposition Algorithm for finding maximal degree-based quasi-clique (QC)

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DDA

func DDA(opts Opts) ([]graph.Nodes, int64, error)

Implementation of DDA Returns three values: the array of maximal QC, the size of the max QC and the error

Types

type GammaQCkSolver

type GammaQCkSolver func(
	in graph.Undirected,
	gamma float64,
	k int64,
	allSolutions bool,
) (qcNodes []graph.Nodes, qcSize int64, err error)

GammaQCkSolver describes the function for solving gamma-QC(k) mixed-integer problem

type GraphBuilder

type GraphBuilder interface {
	graph.NodeAdder
	graph.EdgeAdder
	graph.Graph
}

type Opts

type Opts struct {
	InputGraph graph.Undirected
	Gamma      float64
	SolveMode  SolveMode
	YQCKSolver GammaQCkSolver
}

type SolveMode

type SolveMode bool

SolveMode describes how many solutions will be found by DDA

const (
	OneSolution  SolveMode = false
	AllSolutions SolveMode = true
)

Directories

Path Synopsis
solvers

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL