make graph structs non-transparent