Class that represents a set of user entities.
|
|
__init__(self,
id,
setIdUserEntity=None,
listRelations=None,
listLevelSetIdUserEntity=None)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature |
source code
|
|
|
|
|
|
|
| addRestriction(self,
restriction_type,
restrictions) |
source code
|
|
|
|
| setRestriction(self,
restriction_type,
restriction) |
source code
|
|
|
|
|
|
|
addTagToSelectedUE(self,
tag)
Adds a tag to selected user entities in this set |
source code
|
|
|
|
addTagToSelectedUER(self,
tag)
Adds a tag to selected user entities in this set |
source code
|
|
|
|
|
|
|
get_user_entity_ids_by_linker_degree_cutoff(self,
linker_degree_cutoff)
Get user entities having a linker degree equal or higher to a given
cutoff. |
source code
|
|
|
|
|
|
|
| getUserEntityTagLinkageDegree(self,
userEntityID,
tag) |
source code
|
|
|
|
getPathLengthNetwork(self,
listUserEntityID,
path_length_cutoff=10000)
Returns an undirected weighted networkx graph containing only nodes
in listUserEntityID |
source code
|
|
|
|
| testfast_getUserEntityTagConnectedMetrics(self,
userEntityIDList,
tag) |
source code
|
|
|
|
| _get_single_source_shortest_path(self,
userEntityIDList) |
source code
|
|
|
|
getUserEntityTagConnectedMetrics(self,
userEntityID,
tag)
Test method |
source code
|
|
|
|
|
|
|
|
|
|
relation_has_tag(self,
userEntityRelationID,
tag)
userEntityRelationID is a tuple (userEntityRelationA,
userEntityRelationB) where userEntityRelationA <=
userEntityRelationB |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
| get_external_entity_relation_tags(self,
external_entity_relation_id) |
source code
|
|
|
|
|
|
|
| get_external_entity_relations_for_tag(self,
tag) |
source code
|
|
|
|
|
|
|
|
|
|
getUserEntityGroups(self,
userEntityID)
Returns the groups in which this user entity belongs |
source code
|
|
|
|
get_group_user_entities(self,
group_id)
Returns the user entities belonging to this group |
source code
|
|
|
|
get_groups_ids(self)
Returns a collection of the ids of the groups (they should be
external entity ids) |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
isNetworkCreated(self)
Checks if is_network_created is True or False #Checks if this user
entity set contains any edge (so, if it contains any edge) |
source code
|
|
|
|
|
|
|
| selectUserEntityRelationsByTag(self,
tagList) |
source code
|
|
|
|
inverse_user_entity_relations_selection(self)
Reverses the current selection of user entity relations |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
| _get_user_entity_relation_id(self,
node1,
node2) |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
addUserEntityId(self,
idUserEntity,
level=0)
Adds a user entity to this user entity set to the level
"level" |
source code
|
|
|
|
setGroupsHierarchy(self,
list_hierarchy)
"list_hierarchy" is a list [(group_id1, group_id2) in which
group_id1 is child of group_id2 |
source code
|
|
|
|
addUserEntitiesToGroup(self,
group_id,
userEntityID,
representative_userEntityID,
group_type,
parentGroupID=None)
One of the two user entities must belong to the network
"parentGroupID" is used to store groups hierarchy |
source code
|
|
|
|
| get_external_entity_relation_participants(self,
external_entity_relation_id) |
source code
|
|
|
|
addUserEntityRelation(self,
idUserEntity1,
idUserEntity2,
externalEntityRelationID)
returns True if it has been added, or False if it existed previously
a relation between idUserEntity1 and idUserEntity2 |
source code
|
|
|
|
| _getRelationHash(self,
userEntityID1,
userEntityID2) |
source code
|
|
|
|
|
|
|
|
|
|
| get_external_entity_relation_ids(self,
user_entity_id1,
user_entity_id2) |
source code
|
|
|
|
| remove_external_entity_relation(self,
externalEntityRelationID) |
source code
|
|
|
|
remove_edge(self,
nodeID1,
nodeID2,
externalEntityRelationID=None)
If externalEntityRelationID is None, remove all edges between these
two nodes |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
get_user_entity_ids(self,
level=None)
"level" can be a number with the level or "last" |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
getRelationsBetweenGivenUserEntities(self,
setIdUserEntity)
Fetchs interactions between all the user entities provided in the set
Returns a set of tuples containing (id1, id2) |
source code
|
|
|
|
| getShortestPathBetween(self,
idUserEntity1,
idUserEntity2) |
source code
|
|
|
|
|
|
|
| getUnionWithGivenUserEntitySet(self,
objUserEntitySet,
flagIncludeInteractions) |
source code
|
|
|
|
getIntersectionWithGivenUserEntitySet(self,
objUserEntitySet,
flagIncludeInteractions)
Interactions for intersection nodes are included if
flagIncludeInteractions is selected |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
_get_groups_xml(self,
only_not_printed=False,
group_identifiers={})
group_identfiers is a dictionary with the id of the node as a key and
a name for the node |
source code
|
|
|
|
_update_selected_external_ids_dict(self,
attribute,
selected_ext_id_name)
Updates self.selectedExternalIdsDict and self.selectedExtIdsLowerDict |
source code
|
|
|
Inherited from object:
__delattr__,
__getattribute__,
__hash__,
__new__,
__reduce__,
__reduce_ex__,
__setattr__
|