Research Article

HAC: Hybrid Access Control for Online Social Networks

Algorithm 1

RegularExpressionTrans(path).
(1)for all (attr_specs) of path
(2) path_reg_exp = path_reg_exp + attr_spec.rel_attr
(3) if (attr_specs) is the last one on the path then
(4) return path_reg_exp
(5) else
(6) break