Learn R Programming

dynetNLAResistance (version 0.1.0)

cost: Calculate anonymization cost of two nodes.

Description

Calculate anonymization cost of two nodes.

Usage

cost(g, uid, vid, alpha = 1, beta = 2, gamma = 3)

Arguments

g
A graph contains vertexs with different labels and some of which are sensitive.
uid
Name of a node with sensitive label.
vid
Name of a node with unsensitive label.
alpha
Weight of anonymization cost resulted from label generalization.
beta
Weight of anonymization cost resulted from adding edges.
gamma
Weight of anonymization cost resulted from adding nodes.

Value

Anonymization cost of two nodes.