WO2018184305A1 - Group search method based on social network, device, server and storage medium - Google Patents
Group search method based on social network, device, server and storage medium Download PDFInfo
- Publication number
- WO2018184305A1 WO2018184305A1 PCT/CN2017/090571 CN2017090571W WO2018184305A1 WO 2018184305 A1 WO2018184305 A1 WO 2018184305A1 CN 2017090571 W CN2017090571 W CN 2017090571W WO 2018184305 A1 WO2018184305 A1 WO 2018184305A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- group
- user
- node
- social network
- user node
- Prior art date
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/953—Querying, e.g. by the use of web search engines
- G06F16/9535—Search customisation based on user profiles and personalisation
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/22—Indexing; Data structures therefor; Storage structures
- G06F16/2228—Indexing structures
- G06F16/2246—Trees, e.g. B+trees
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/24—Querying
- G06F16/248—Presentation of query results
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/901—Indexing; Data structures therefor; Storage structures
- G06F16/9024—Graphs; Linked lists
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/951—Indexing; Web crawling techniques
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q50/00—Systems or methods specially adapted for specific business sectors, e.g. utilities or tourism
- G06Q50/01—Social networking
Definitions
- the present invention relates to the field of computer application technologies, and in particular, to a community network based group method, apparatus, server, and storage medium.
- the traditional group search method first determines the possible combinations of all the nodes in the social network data according to the number of groups, and then filters all the combinations of the search through the other conditions of the group one by one, the calculation amount is very large, and the search efficiency is extremely low.
- a social network based group search method and apparatus a server, and a storage medium are provided.
- a social network based group search method comprising:
- the group search request carries a specified query user identifier, a set group size, and a group verification degree, wherein the group nuclearity defines a group member The minimum number of adjacent members;
- the social The network map is generated according to social relationship data in a social networking website, the social network map including a plurality of user nodes and a set of edges for connecting the user nodes;
- search expansion based on the user node corresponding to the query user identifier according to the social network map, and determining, in each search expansion layer, a user node that has the largest number of connected user nodes in the social network map as a group a member until the determined number of the group members is equal to the group size;
- the user node that is included in the extended first-level extension layer is an adjacent node of the query user, and the user node included in the next-level extension layer is adjacent to the group member determined by the upper-level extension layer.
- a social network based group search device comprising:
- a search request module configured to receive a group search request sent by the query terminal, where the group search request carries a specified query user identifier, a set group size, and a group check degree, where the group core Degree defines the minimum number of members of a group that are adjacent to other members;
- a social network map retrieval module configured to retrieve a pre-generated social network map in response to the group search request, wherein the social network map is generated according to social relationship data in a social networking website, the social network
- the figure includes a plurality of user nodes and a set of edges for connecting the user nodes;
- a hierarchical search module configured to perform a search expansion of a set number of layers based on the user node corresponding to the query user identifier according to the social network map, and determine one in each search expansion layer in the social network map. Connecting a user node with the largest number of user nodes as a group member, so that the determined number of the group members meets the set group size;
- the user node included in the first-level extension layer in the expansion process is an adjacent node of the query user, and the user node included in the next-level extension layer is the group member determined by the upper-level extension layer. Adjacent user nodes;
- a group determining module configured to form the determined group member and the query user into a group to be searched
- the group feedback module is configured to determine whether the group nuclearity of the to-be-searched group is not less than the set group nuclearity, and if yes, feed the to-be-searched group as a query result to the query terminal display.
- a server comprising a memory and a processor, the memory storing computer executable instructions, the instructions being executed by the processor, causing the processor to perform the following steps:
- the group search request carries a specified query user identifier, a set group size, and a group verification degree, wherein the group nuclearity defines a group member The minimum number of adjacent members;
- the social network map is generated according to social relationship data in a social networking website, the social network map including a plurality of user nodes and Connecting a set of edges of the user node;
- search expansion based on the user node corresponding to the query user identifier according to the social network map, and determining, in each search expansion layer, a user node that has the largest number of connected user nodes in the social network map as a group a member until the determined number of the group members is equal to the group size;
- the user node that is included in the extended first-level extension layer is an adjacent node of the query user, and the user node included in the next-level extension layer is adjacent to the group member determined by the upper-level extension layer.
- One or more non-volatile readable storage media storing computer-executable instructions, the computer-executable instructions being executed by one or more processors, such that the one or more processors perform the steps of:
- the group search request carries a specified query user identifier, a set group size, and a group verification degree, wherein the group nuclearity defines a group member The minimum number of adjacent members;
- the social network map is generated according to social relationship data in a social networking website, the social network map including multiple uses a user node and a set of edges for connecting the user node;
- search expansion based on the user node corresponding to the query user identifier according to the social network map, and determining, in each search expansion layer, a user node that has the largest number of connected user nodes in the social network map as a group a member until the determined number of the group members is equal to the group size;
- the user node that is included in the extended first-level extension layer is an adjacent node of the query user, and the user node included in the next-level extension layer is adjacent to the group member determined by the upper-level extension layer.
- 1 is an application environment diagram of a social network-based group search method in an embodiment
- FIG. 2 is a schematic diagram showing the internal structure of a server in an embodiment
- FIG. 3 is a flow chart of a community network based group lookup method in an embodiment
- 5A-5B are schematic diagrams of hierarchical search starting from a query user in an embodiment
- 6A-6C are groups to be searched by hierarchical search in one embodiment
- FIG. 7 is a flowchart of a social network graph node pruning in an embodiment
- FIG. 8 is a schematic diagram of a social network graph node pruning in an embodiment
- FIG. 9 is a flowchart related to group preference when there are a plurality of groups satisfying the query condition in one embodiment
- FIG. 10 is a structural block diagram of a social network-based group search apparatus in an embodiment
- FIG. 11 is a structural block diagram of a social network-based group search apparatus in another embodiment
- FIG. 12 is a structural block diagram of a social network based group search apparatus in still another embodiment.
- an application environment diagram of a community network-based group search method is provided, where the application environment map includes a query terminal 110 and a server 120.
- the query terminal 110 can communicate with the server 120 over a network.
- the query terminal 110 may be at least one of a smartphone, a tablet, a notebook, and a desktop computer, but is not limited thereto.
- the server 120 may be an independent physical server or a server cluster composed of a plurality of physical servers.
- the querying terminal 110 sends a group lookup request to the server 120, specifying the querying user, the group size, and the grouping degree.
- the server 120 performs hierarchical search and expansion on the data source (social network map) based on the given group query requirements (group size and group verification) of the querying terminal, and each search expansion layer Determining a user node with the largest number of connected user nodes in the social network map as a group member, and ensuring the group size requirement in the determining process. After the group is initially determined, the determined group is verified by the verification. If the verification requirement is met, the group information corresponding to the found group is fed back to the query terminal.
- group query requirements group size and group verification
- a server 120 includes a processor coupled via a system bus, a non-volatile storage medium, an internal memory, and a network interface.
- the non-volatile storage medium of the server 120 stores an operating system, a database, and at least one computer executable instruction.
- the processor can be caused to perform a social network based group lookup method as shown in FIG.
- the database is used to store data, such as storing social network maps and the like involved in the execution of the social network-based group search method.
- the processor is used to provide computing and control capabilities to support the operation of the entire server 120.
- the internal memory in the server provides a cached operating environment for operating systems, databases, and computer executable instructions in a non-volatile storage medium.
- the network interface is used for communication connection with the query terminal 110.
- the structure of the server shown in FIG. 2 is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the server to which the solution of the present application is applied.
- the specific server may include Show more or fewer parts, or combine some parts, or have different part arrangements.
- a social network-based group search method is provided.
- the method is applicable to the server shown in FIG. 2, and specifically includes the following steps:
- Step S202 Receive a group search request sent by the querying terminal, where the group search request carries the specified query user identifier, the set group size, and the group core degree, and the group check degree defines the group member adjacency. The minimum number of other members.
- the query interface is displayed in the query terminal, and the query condition can be set in the query interface.
- the query conditions include group size and group verification.
- the group size refers to the number of group members; the group nuclearity refers to the minimum number of other group members in the adjacent group of each group member in the determined group member.
- each group member in the figure is adjacent to at least 3 other group members, and therefore, the group has a group degree of 3.
- the user can set the group size and group verification by inputting controls in the query interface.
- you can also specify the query user through the query interface.
- the query user is a specified group member, that is, a group member that must be included. For example, Alice in the example scenario is the query user.
- the social networking site such as Weibo, MSN, etc.
- the server will push the corresponding query user identifier to the terminal control corresponding to the querying user according to the selected social networking website. In order to enable the user to query the selection of the user identification through the terminal control.
- the query user is the user ID of the querying end user in the selected database.
- the selected social networking site is Weibo
- the user identifier of the querying terminal is Litch.
- the querying user is the identifier of Litch in Weibo, such as Litchsweety.
- the user identity of the end user in the designated social networking site can be automatically queried by the registration identity information (eg, phone number, real name, identity number, etc.) in the registration information.
- the registration identity information eg, phone number, real name, identity number, etc.
- Step S204 Retrieving a pre-generated social network map in response to the group search request, wherein the social network map is generated according to social relationship data in the social networking website, where the social network map includes a plurality of user nodes and is used to connect the user nodes. Side set.
- the social network map is generated based on social relationship data in a pre-designated social networking website.
- a social relationship in a social networking site may be a relationship in which a friend relationship, a mutual interest, and the like are related to each other.
- the two elements included in social relationships are the relationship between users and users.
- the social network map generated according to the social relationship identifies the user through the node, and identifies the relationship between the users through the edge between the nodes.
- FIG. 4 is a social network diagram.
- a social network map generated based on social network-based social relationship data is a very large and complex social network image. According to the traditional practice, filtering out the groups that meet the query conditions will be a major project, which takes more time and larger computing resources.
- the purpose of determining the central node by layer by layer is to quickly and accurately achieve the purpose of finding a group that satisfies the query condition, as detailed in the subsequent steps.
- Step S206 Perform search expansion based on the user node corresponding to the user identifier according to the social network map, and determine, in each search expansion layer, a user node that has the largest number of connected user nodes in the social network map as a group member, until The determined number of group members is equal to the group size, wherein the user node included in the first level expansion layer in the expansion process is the neighbor node of the query user, and the user node included in the next level expansion layer is determined by the upper level expansion layer. The user node to which the group member is adjacent.
- the location of the query user identifier is located in the social network graph, and then the user node corresponding to the query user identifier is used as a starting point for hierarchical expansion to form an extended subgraph.
- the user node included in the first extension layer of the extended sub-picture is a user node adjacent to the user node corresponding to the query user.
- the user node included in the first extension layer is a node adjacent to the user node v4, which are respectively v2, v5, and v6.
- the extended subgraph in Figure 5B is a node adjacent to the user node v4, which are respectively v2, v5, and v6.
- one user node is determined as a group member among the user nodes included in the first extension layer. Specifically, determine the number of adjacent user nodes in the social network graph. Many nodes are members of the group. The number of neighboring nodes in the social network graph of the v2 user node in the first extension layer is 6; the number of neighboring nodes in the social network graph of the v5 user node is 7; the number of neighboring nodes in the social network graph of the v6 user node is 4 . Therefore, v5 is selected as a group member.
- the user node corresponding to the new group member is used as the new central node to perform the next level of expansion. That is, v5 is used as a new central node to expand the second extension layer.
- the user node included in the second extension layer is a user node adjacent to v5. It should be noted that the user node that has been determined to be a member of the group is not included in the new extension layer. As shown in FIG. 5B, although v4 is a node adjacent to v5, since v4 is a user node that has been determined to be a member of the group, the node v4 is not included in the second extension layer.
- the user nodes included in the second extension layer are v1, v2, v3, v6, v7, and v9, respectively.
- the node with the most adjacent nodes determined according to the second extension layer is v2 (the number of adjacent nodes is six), and therefore, it is determined that the node v2 is a group member.
- the user nodes included in the third extension layer are v1, v8, v3, and v6, respectively.
- the number of user nodes adjacent to v1, v8, v3, and v6 are: 3, 4, 4, and 4, respectively. Therefore, the determined group member can be v8 or v3 or v6.
- Step S208 The determined group member and the query user are grouped into a group to be searched.
- the determined to-be-searched group is ⁇ v4, v5, v2, v6 ⁇ or ⁇ v4, v5, v2, v3 ⁇ or ⁇ v4, v5, v2, v8 ⁇ .
- a group network map of the group to be searched is constructed according to the determined relationship between the group members to be searched and the group members (the association relationship can be determined from the social relationship diagram).
- FIGS. 6A, 6B, and 6C Group network diagrams such as ⁇ v4, v5, v2, v6 ⁇ , ⁇ v4, v5, v2, v3 ⁇ , ⁇ v4, v5, v2, v8 ⁇ are sequentially shown in FIGS. 6A, 6B, and 6C.
- Step S210 It is determined whether the group nuclearity of the to-be-searched group is not less than the set group nuclearity, and if yes, the to-be-searched group is fed back to the query terminal as a query result.
- the degree of ⁇ v4, v5, v2, v6 ⁇ is 3; the degree of ⁇ v4, v5, v2, v3 ⁇ is 2; The verinity of v4, v5, v2, v8 ⁇ is 1. If the group verifier specified by the query terminal is 3, ⁇ v4, v5, v2, v6 ⁇ is a group that satisfies the query condition. If the group specified by the query terminal is 2, then ⁇ v4, v5, v2, v6 ⁇ and ⁇ v4, v5, v2, v3 ⁇ A group that meets the query criteria. Push the group that meets the query criteria to the query terminal.
- the social network-based group search method in this embodiment performs hierarchical expansion centering on the query user, and the adopted extension only depends on the connection relationship of each node in the social network data.
- the expansion process is simple and fast, and it is not necessary to filter all the combinations that may be searched one by one, and the query efficiency is high.
- the selected group members are members with higher degree of nuclearity, which ensures that the found groups have higher intimacy.
- step S204 responding to the group search request, retrieving a pre-generated social network map generated according to social relationship data in the social networking website, the social network graph including a plurality of user nodes and After the step of connecting the edge set of the user node, the method further includes: performing pruning on the retrieved social network graph. Then, based on the pruned social network map, step S206 is performed: searching for the set number of layers according to the user node corresponding to the query user identifier according to the social network map, and determining a social layer in each search expansion layer.
- the user node with the largest number of connected user nodes in the network diagram is used as the group member, so that the determined number of group members meets the set group size; wherein the user node included in the first level expansion layer in the expansion process is a query.
- the user node is a neighboring node, and the user node included in the next-level extension layer is a user node adjacent to the group member determined by the upper-level extension layer.
- the steps of performing pruning processing on the retrieved social network graph include:
- Step S302 Construct a breadth-first search tree with the user node corresponding to the query user identifier as a root node, and the breadth-first search tree sequentially traverses all user nodes in the social network map from the query user identifier.
- the breadth-first search starts from a certain vertex v0 of the graph, and after accessing v0, sequentially searches for each of the unvisited neighboring points w1, w2, ... that access v0. Then, sequentially search for each of the adjacent points that have not been accessed by accessing w1, the adjacent points of w2 that have not been accessed, .... That is, starting from v0, from the near to the far, the vertices that are in communication with the v0 path and whose path lengths are 1, 2, ... are accessed in order, until all the vertices in the connected graph are accessed once.
- the breadth-first search BFS is constructed with the query user v1 as the root node, and FIG. 8(b) is the query user v1 based on the social network map. Breadth-first search tree.
- Step S304 Determine, according to the constructed breadth-first search tree, the shortest society of each node to the querying user. Cross distance.
- the social distance of each user node from the root node can be determined, and the social distance determined by the breadth-first search tree is the shortest social distance.
- the shortest social distance of v2, v3, and v5 is 1
- the shortest social distance of v4, v6, and v8 is 2
- the shortest social distance of v7 is 3.
- Step S306 Calculate the difference between the group size and the shortest social distance of each user node.
- the user node whose difference is not greater than 1 is a pruning node, and the pruning node and the edge corresponding to the pruning node are removed in the social network graph. set.
- the user node v7 with the shortest social distance of 3 Assuming that the specified group size is 4, for the user node v7 with the shortest social distance of 3, the difference between the group size 4 and the shortest social distance 3 is not more than 1, so the user node v7 is a pruning node. User nodes with a shortest social distance greater than 3 also belong to the pruning node.
- Step S308 determining whether there is a user node that does not meet the nuclear degree requirement in the user node of the pruned social network map, and if yes, removing the user node that does not meet the verification requirement in the pruned social network map,
- the social network map is updated after pruning.
- the group's nuclearity is essentially the nuclearity of the group members. If the user node does not meet the requirements in the searched social network diagram, if it is proposed as a group member, its nuclearity in the group will be even less satisfactory. Therefore, it is necessary to socialize after pruning.
- the user node in the network diagram performs a check of the core. If there is a user node in the social network diagram after the pruning that does not meet the verification requirement, the user node is pruned again.
- the hierarchical expansion based on the pruned social network map will be simpler, and the generated extended subgraph will also be simplified, so that the group query is more efficient.
- the social network-based group search method when the group that satisfies the query condition (group size and group verification) by the hierarchical expansion is multiple, the social network-based group search method further includes:
- Step S402 determining, according to the social network map, an edge set between each group member in the to-be-searched group, the root According to the determined edge set, a group network diagram of each group to be queried is constructed by using a group member as a user node.
- the group to be searched according to the hierarchical search may determine the member information of the group, and the group information may be determined according to the member information of the group and the social network map (if the pruning process is performed, the social network map after the pruning)
- the relationship between group members A group node is used as a user node, and an association relationship between the group members generates an edge set between the user nodes, so that a group network map of the group to be searched is generated.
- 6A, 6B, and 6C are determined to be found groups ⁇ v4, v5, v2, v6 ⁇ , ⁇ v4, v5, v2, v3 ⁇ , and ⁇ v4, respectively.
- Step S404 Calculate the group intimacy of each group network map.
- Calculating the group intimacy corresponding to each group to be searched according to the generated group network map First, calculate the intimacy between any two nodes in the group network diagram. The node intimacy of all possible combinations is then summed to obtain group intimacy.
- the node intimacy of ⁇ v2, v6 ⁇ , ⁇ v2, v4 ⁇ , ⁇ v2, v5 ⁇ , ⁇ v4, v6 ⁇ , ⁇ v4, v5 ⁇ , ⁇ v5, v6 ⁇ is sequentially calculated, and then These 6 nodes are intimately summed to obtain a group group density.
- N(u) represents the set of adjacent nodes of node u
- the numerator adopts the co-neighbor of the node plus 1, mainly to avoid the case where there is an edge between the two nodes, but the intimacy is zero.
- Co(G C ) ⁇ (v 2 , v 4 )+ ⁇ (v 2 ,v 5 )+ ⁇ (v 2 ,v 8 )+ ⁇ (v 4
- Step S406 The group to be searched corresponding to the group network map with the highest intimacy is fed back to the query terminal as a query result.
- the query result fed back to the query terminal is a group network map generated according to the association relationship between the group members and the group members in the social network map, as shown in FIG. 6A.
- the verification degree of each determined group to be searched may also be calculated, if present, For the maximum degree of verification, the group with the highest degree of verification is fed back to the query terminal as the query result.
- the group verdicts are 3, 2, and 1, respectively. If the group qualification of the query condition is 1, the three groups to be searched satisfy the query condition. At this time, the result is pushed according to the size of the group. That is, the group A to be searched with the highest group nuclearity is pushed to the inquiry terminal for display.
- a social network-based group search apparatus includes:
- the search requesting module 510 is configured to receive a group search request sent by the querying terminal, where the group search request carries the specified query user identifier, the set group size, and the group verification degree, wherein the group verification degree Limits the minimum number of group members that are adjacent to other members.
- the social network map retrieval module 520 is configured to retrieve a pre-generated social network map according to the group search request, where the social network map is generated according to social relationship data in the social networking website, where the social network map includes a plurality of user nodes and The set of edges used to connect to the user node.
- the hierarchical search module 530 is configured to perform a search expansion of the set number of layers according to the user node corresponding to the user identifier according to the social network map, and determine, in each search expansion layer, a maximum number of connected user nodes in the social network map. User node as a group member, so that the determined number of group members meets the set group size;
- the user node included in the first-level extension layer in the expansion process is a neighboring node of the query user, and the user node included in the next-level extension layer is a user node adjacent to the group member determined by the upper-level extension layer.
- the group determining module 540 is configured to form the determined group member and the query user into a group to be searched.
- the group feedback module 550 is configured to determine whether the group verification degree of the to-be-searched group is not less than the set group verification degree, and if yes, feed the to-be-searched group as a query result to the query terminal display. .
- the social network-based group search apparatus further includes:
- a search tree construction module 610 configured to build a breadth-first search tree with the user node corresponding to the query user identifier as a root node, where the breadth-first search tree sequentially traverses all the social network maps from the query user identifier User node.
- the shortest social distance calculation module 620 is configured to determine a shortest social distance from each user node to the root node according to the constructed breadth-first search tree.
- the pruning module 630 is configured to calculate a difference between a group size and a shortest social distance of each user node, where the user node with a difference of not more than 1 is a pruning node, and the pruning node and the pruning are removed in the social network diagram.
- the edge set associated with the node generates a social network map after pruning.
- the pruning module 630 is further configured to: find, in the user node of the social network graph after the pruning, whether there is a user node whose node is less than the group nuclearity, wherein the node core The degree is the number of nodes adjacent to the user node, and if so, the found user node is removed from the pruned social network map, and the pruned social network map is updated.
- the determined group to be searched is multiple; the social network-based group search device further includes:
- a group network diagram construction module 710 configured to determine, according to the social network map, an edge set between each group member in the to-be-searched group, and use the group member as a user node according to the determined edge set Constructing a group network diagram of each of the groups to be queried;
- the intimacy calculation module 720 is configured to calculate the intimacy of each group network map
- the group feedback module 550 is further configured to feed back the to-be-searched group corresponding to the most intimate group network map as a query result to the query terminal display.
- the group intimacy of the group network map is calculated as:
- N(u) represents the set of neighbor nodes of node u
- the network interface may be an Ethernet card or a wireless network card.
- the above modules may be embedded in the hardware in the processor or in the memory in the server, or may be stored in the memory in the server, so that the processor calls the corresponding operations of the above modules.
- the processor can be a central processing unit (CPU), a microprocessor, a microcontroller, or the like.
- the program may be stored in a storage medium of a computer system and executed by at least one processor in the computer system to implement a process comprising an embodiment of the methods as described above.
- the storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM).
Abstract
Description
Claims (24)
- 一种基于社交网络的群组查找方法,包括:A social network based group search method includes:接收查询终端发送的群组查找请求,所述群组查找请求中携带指定包含的查询用户标识、设定的群组规模和群组核度,其中,所述群组核度限定了群组成员邻接其他成员的最少的数量;Receiving a group search request sent by the querying terminal, where the group search request carries a specified query user identifier, a set group size, and a group verification degree, wherein the group nuclearity defines a group member The minimum number of adjacent members;响应于所述群组查找请求,调取预先生成的社交网络图,其中,所述社交网络图是根据社交网站中的社交关系数据生成的,所述社交网络图包括多个用户节点和用于连接所述用户节点的边集;Retrieving a pre-generated social network map in response to the group lookup request, wherein the social network map is generated according to social relationship data in a social networking website, the social network map including a plurality of user nodes and Connecting a set of edges of the user node;根据所述社交网络图以所述查询用户标识对应的用户节点为起始点进行搜索拓展,在每个搜索拓展层中确定一个在所述社交网络图中连接用户节点数量最多的用户节点作为群组成员,直至确定的所述群组成员的数量等于所述群组规模;Performing search expansion based on the user node corresponding to the query user identifier according to the social network map, and determining, in each search expansion layer, a user node that has the largest number of connected user nodes in the social network map as a group a member until the determined number of the group members is equal to the group size;其中,拓展的一级拓展层包括的所述用户节点为所述查询用户的邻接节点,下一级拓展层包括的所述用户节点为上一级拓展层确定的所述群组成员所邻接的用户节点;The user node that is included in the extended first-level extension layer is an adjacent node of the query user, and the user node included in the next-level extension layer is adjacent to the group member determined by the upper-level extension layer. User node将确定的所述群组成员和所述查询用户组成待查找群组;及Forming the determined group member and the querying user into a group to be searched; and判断所述待查找群组的群组核度是否不小于设定的所述群组核度,若是,将所述待查找群组作为查询结果反馈至查询终端显示。Determining whether the group grading of the group to be searched is not less than the set group grading, and if yes, feeding the group to be searched as a query result to the query terminal for display.
- 根据权利要求1所述的方法,其特征在于,在所述响应于所述群组查找请求,调取预先生成的社交网络图,其中,所述社交网络图是根据社交网站中的社交关系数据生成的,所述社交网络图包括多个用户节点和用于连接所述用户节点的边集之后,所述方法还包括:The method of claim 1, wherein the pre-generated social network map is retrieved in response to the group lookup request, wherein the social network map is based on social relationship data in a social networking website After the social network map includes a plurality of user nodes and a set of edges for connecting the user nodes, the method further includes:以所述查询用户标识对应的用户节点为根节点构建广度优先搜索树,所述广度优先搜索树从所述查询用户标识开始依次遍历所述社交网络图中所有的用户节点;Constructing a breadth-first search tree with the user node corresponding to the query user identifier as a root node, and the breadth-first search tree sequentially traverses all the user nodes in the social network map from the query user identifier;根据构建的所述广度优先搜索树确定每个用户节点到所述根节点的最短社交距离;Determining a shortest social distance of each user node to the root node according to the constructed breadth-first search tree;计算所述群组规模与每个所述用户节点的最短社交距离的差值,所述差值 不大于1的用户节点为剪枝节点,在所述社交网络图中去除所述剪枝节点以及与所述剪枝节点关联的边集,生成剪枝后的社交网络图。Calculating a difference between the group size and a shortest social distance of each of the user nodes, the difference The user node that is not greater than 1 is a pruning node, and the pruning node and the edge set associated with the pruning node are removed in the social network map to generate a pruned social network graph.
- 根据权利要求2所述的方法,其特征在于,在所述计算所述群组规模与每个所述用户节点的最短社交距离的差值,所述差值不大于1的用户节点为剪枝节点,在所述社交网络图中去除所述剪枝节点以及与所述剪枝节点关联的边集,生成剪枝后的社交网络图之后,所述方法还包括:The method according to claim 2, wherein in calculating the difference between the group size and the shortest social distance of each of the user nodes, the user node whose difference is not greater than 1 is pruning After the prune node and the edge group associated with the prune node are removed from the social network map to generate the prune social network map, the method further includes:查找剪枝后的所述社交网络图的用户节点中是否存在节点核度小于所述群组核度的用户节点,其中,所述节点核度为所述用户节点所邻接节点的数量,若是,则在剪枝后的社交网络图中去除查找到的所述用户节点,并更新剪枝后的所述社交网络图。Finding, in the user node of the social network graph after the pruning, whether there is a user node whose node nuclear degree is smaller than the group nuclear degree, wherein the node nuclearity is the number of nodes adjacent to the user node, and if so, Then, the found user node is removed in the pruned social network map, and the pruned social network map is updated.
- 根据权利要求1所述的方法,其特征在于,所述根据所述社交网络图以所述查询用户标识对应的用户节点为起始点进行搜索拓展,在每个搜索拓展层中确定一个在所述社交网络图中连接用户节点数量最多的用户节点作为群组成员,直至确定的所述群组成员的数量等于所述群组规模;The method according to claim 1, wherein the searching for a user base node corresponding to the query user identifier is performed according to the social network map, and each of the search expansion layers determines one of the a user node in the social network graph that has the largest number of connected user nodes as a group member until the determined number of the group members is equal to the group size;其中,拓展的一级拓展层包括的所述用户节点为所述查询用户的邻接节点,下一级拓展层包括的所述用户节点为上一级拓展层确定的所述群组成员所邻接的用户节点包括:The user node that is included in the extended first-level extension layer is an adjacent node of the query user, and the user node included in the next-level extension layer is adjacent to the group member determined by the upper-level extension layer. User nodes include:在所述社交网络图中定位所述查询用户标识所在的用户节点,并以定位的所述用户节点为起始点进行层级拓展,生成拓展子图的第一拓展层,其中所述第一拓展层包括的用户节点为所述查询用户邻接的用户节点;Positioning the user node where the query user identifier is located in the social network map, and performing hierarchical expansion with the located user node as a starting point, and generating a first expansion layer of the extended sub-picture, where the first expansion layer The included user node is a user node adjacent to the query user;从所述拓展子图的第一拓展层中确定一个群组成员,其中所述群组成员对应的用户节点为在所述社交网络图中邻接节点数量最多的用户节点;Determining a group member from the first extension layer of the extended sub-graph, wherein the user node corresponding to the group member is a user node having the largest number of adjacent nodes in the social network graph;以在所述第一拓展层中的群组成员对应的用户节点为当前起始点进行所述拓展子图的下一级拓展层拓展,并在相应的拓展层中确定新的群组成员,直至确定的所述群组成员的数量等于所述群组规模。Performing, by using a user node corresponding to the group member in the first expansion layer as a current starting point, performing an expansion of the next level of the extended sub-picture, and determining a new group member in the corresponding expansion layer, until The determined number of the group members is equal to the group size.
- 根据权利要求1所述的方法,其特征在于,确定的所述待查找群组为多个;所述方法还包括:The method according to claim 1, wherein the determined group to be searched is plural; the method further comprises:根据所述社交网络图确定所述待查找群组中各群组成员之间的边集,根据 确定的所述边集以所述群组成员为用户节点构建每个所述待查询群组的群组网络图;Determining, according to the social network map, an edge set between each group member in the to-be-searched group, according to Determining the edge set to construct a group network diagram of each of the to-be-queried groups by using the group member as a user node;计算每个所述群组网络图的亲密度;Calculating the intimacy of each of the group network maps;将亲密度最大的所述群组网络图对应的所述待查找群组作为查询结果反馈至查询终端显示。The to-be-searched group corresponding to the group network map with the highest intimacy is fed back to the query terminal as a query result.
- 根据权利要求5所述的方法,其特征在于,所述群组网络图的群组亲密度的计算公式为:The method according to claim 5, wherein the group intimacy of the group network map is calculated as:Co(G)=∑(u,v)∈Eω(u,v)Co(G)=∑ (u,v)∈E ω(u,v)其中,Co(G)为群组亲密度,G=(V,E)为群组网络图,V为群组网络图中节点的集合,E为群组网络图中的边集,Co(G) is the group intimacy, G=(V, E) is the group network graph, V is the set of nodes in the group network graph, and E is the edge set in the group network graph.其中N(u)表示节点u的邻居节点集合,节点u和v的共同邻居节点数为|N(u)∩N(v)|。Where N(u) represents the set of neighbor nodes of node u, and the number of common neighbor nodes of nodes u and v is |N(u)∩N(v)|.
- 一种基于社交网络的群组查找装置,包括:A group search device based on a social network, comprising:查找请求模块,用于接收查询终端发送的群组查找请求,所述群组查找请求中携带指定包含的查询用户标识、设定的群组规模和群组核度,其中,所述群组核度限定了群组成员邻接其他成员的最少的数量;a search request module, configured to receive a group search request sent by the query terminal, where the group search request carries a specified query user identifier, a set group size, and a group check degree, where the group core Degree defines the minimum number of members of a group that are adjacent to other members;社交网络图调取模块,用于响应于所述群组查找请求,调取预先生成的社交网络图,其中,所述社交网络图是根据社交网站中的社交关系数据生成的,所述社交网络图包括多个用户节点和用于连接所述用户节点的边集;a social network map retrieval module, configured to retrieve a pre-generated social network map in response to the group search request, wherein the social network map is generated according to social relationship data in a social networking website, the social network The figure includes a plurality of user nodes and a set of edges for connecting the user nodes;层级查找模块,用于根据所述社交网络图以所述查询用户标识对应的用户节点为起始点进行设定层数的搜索拓展,在每个搜索拓展层中确定一个在所述社交网络图中连接用户节点数量最多的用户节点作为群组成员,以使确定的所述群组成员的数量满足所述设定的群组规模;a hierarchical search module, configured to perform a search expansion of a set number of layers based on the user node corresponding to the query user identifier according to the social network map, and determine one in each search expansion layer in the social network map. Connecting a user node with the largest number of user nodes as a group member, so that the determined number of the group members meets the set group size;其中,在拓展过程中的一级拓展层包括的所述用户节点为所述查询用户的 邻接节点,下一级拓展层包括的所述用户节点为上一级拓展层确定的所述群组成员所邻接的用户节点;Wherein, the user node included in the first level expansion layer in the expansion process is the query user Adjacent node, the user node included in the next-level extension layer is a user node adjacent to the group member determined by the upper-level extension layer;群组确定模块,用于将确定的所述群组成员和所述查询用户组成待查找群组;及a group determining module, configured to form the determined group member and the query user into a group to be searched; and群组反馈模块,用于判断所述待查找群组的群组核度是否不小于设定的所述群组核度,若是,将所述待查找群组作为查询结果反馈至查询终端显示。The group feedback module is configured to determine whether the group nuclearity of the to-be-searched group is not less than the set group nuclearity, and if yes, feed the to-be-searched group as a query result to the query terminal display.
- 根据权利要求7所述的装置,其特征在于,还包括:The device according to claim 7, further comprising:搜索树构建模块,用于以所述查询用户标识对应的用户节点为根节点构建广度优先搜索树,所述广度优先搜索树从所述查询用户标识开始依次遍历所述社交网络图中所有的用户节点;a search tree building module, configured to build a breadth-first search tree by using a user node corresponding to the query user identifier as a root node, where the breadth-first search tree sequentially traverses all users in the social network map from the query user identifier node;最短社交距离计算模块,用于根据构建的所述广度优先搜索树确定每个用户节点到所述根节点的最短社交距离;a shortest social distance calculation module, configured to determine a shortest social distance of each user node to the root node according to the constructed breadth-first search tree;剪枝模块,用于计算所述群组规模与每个所述用户节点的最短社交距离的差值,所述差值不大于1的用户节点为剪枝节点,在所述社交网络图中去除所述剪枝节点以及与所述剪枝节点关联的边集,生成剪枝后的社交网络图。a pruning module, configured to calculate a difference between the group size and a shortest social distance of each of the user nodes, where the user node whose difference is not greater than 1 is a pruning node, and is removed in the social network diagram The pruning node and the edge set associated with the pruning node generate a pruned social network map.
- 根据权利要求8所述的装置,其特征在于,所述剪枝模块,还用于查找剪枝后的所述社交网络图的用户节点中是否存在节点核度小于所述群组核度的用户节点,其中,所述节点核度为所述用户节点所邻接节点的数量,若是,则在剪枝后的社交网络图中去除查找到的所述用户节点,并更新剪枝后的所述社交网络图。The device according to claim 8, wherein the pruning module is further configured to: find, in a user node of the social network graph after the pruning, whether there is a user whose node is less than the group versue a node, wherein the node is a number of nodes adjacent to the user node, and if yes, removing the found user node in the pruned social network map, and updating the pruned social Network Diagram.
- 根据权利要求7所示的装置,其特征在于,所述层级查找模块还用于在所述社交网络图中定位所述查询用户标识所在的用户节点,并以定位的所述用户节点为起始点进行层级拓展,生成拓展子图的第一拓展层,其中所述第一拓展层包括的用户节点为所述查询用户邻接的用户节点;从所述拓展子图的第一拓展层中确定一个群组成员,其中所述群组成员对应的用户节点为在所述社交网络图中邻接节点数量最多的用户节点;以在所述第一拓展层中的群组成员对应的用户节点为当前起始点进行所述拓展子图的下一级拓展层拓展,并在相应的拓展层中确定新的群组成员,直至确定的所述群组成员的数量等于所述群 组规模。The device according to claim 7, wherein the hierarchical search module is further configured to locate the user node where the query user identifier is located in the social network map, and start with the located user node. Performing a hierarchical extension to generate a first extension layer of the extended sub-picture, wherein the user node included in the first extension layer is a user node adjacent to the query user; and determining a group from the first extension layer of the extended sub-picture a group member, wherein the user node corresponding to the group member is a user node having the largest number of adjacent nodes in the social network graph; and the user node corresponding to the group member in the first extension layer is the current starting point Performing expansion of the next level of the expansion subgraph, and determining new group members in the corresponding extension layer until the determined number of the group members is equal to the group Group size.
- 根据权利要求7所述的装置,其特征在于,确定的所述待查找群组为多个;所述装置还包括:The device according to claim 7, wherein the determined group to be searched is plural; the device further comprises:群组网络图构建模块,用于根据所述社交网络图确定所述待查找群组中各群组成员之间的边集,根据确定的所述边集以所述群组成员为用户节点构建每个所述待查询群组的群组网络图;a group network diagram construction module, configured to determine, according to the social network map, an edge set between each group member in the to-be-searched group, and construct the group member as the user node according to the determined edge set a group network diagram of each of the groups to be queried;亲密度计算模块,用于计算每个所述群组网络图的亲密度;a closeness calculation module, configured to calculate an intimacy of each of the group network maps;所述群组反馈模块,还用于将亲密度最大的所述群组网络图对应的所述待查找群组作为查询结果反馈至查询终端显示。The group feedback module is further configured to feed back the to-be-searched group corresponding to the group network map with the highest intimacy as a query result to the query terminal display.
- 根据权利要求11所述的装置,其特征在于,所述群组网络图的群组亲密度的计算公式为:The apparatus according to claim 11, wherein the group intimacy of the group network map is calculated as:Co(G)=∑(u,v)∈Eω(u,v)Co(G)=∑ (u,v)∈E ω(u,v)其中,Co(G)为群组亲密度,G=(V,E)为群组网络图,V为群组网络图中节点的集合,E为群组网络图中的边集,Co(G) is the group intimacy, G=(V, E) is the group network graph, V is the set of nodes in the group network graph, and E is the edge set in the group network graph.其中N(u)表示节点u的邻居节点集合,节点u和v的共同邻居节点数为|N(u)∩N(v)|。Where N(u) represents the set of neighbor nodes of node u, and the number of common neighbor nodes of nodes u and v is |N(u)∩N(v)|.
- 一种服务器,包括存储器和处理器,所述存储器中存储有计算机可执行指令,所述指令被所述处理器执行时,使得所述处理器执行以下步骤:A server comprising a memory and a processor, the memory storing computer executable instructions, the instructions being executed by the processor, causing the processor to perform the following steps:接收查询终端发送的群组查找请求,所述群组查找请求中携带指定包含的查询用户标识、设定的群组规模和群组核度,其中,所述群组核度限定了群组成员邻接其他成员的最少的数量;Receiving a group search request sent by the querying terminal, where the group search request carries a specified query user identifier, a set group size, and a group verification degree, wherein the group nuclearity defines a group member The minimum number of adjacent members;响应于所述群组查找请求,调取预先生成的社交网络图,其中,所述社交网络图是根据社交网站中的社交关系数据生成的,所述社交网络图包括多个用户节点和用于连接所述用户节点的边集;Retrieving a pre-generated social network map in response to the group lookup request, wherein the social network map is generated according to social relationship data in a social networking website, the social network map including a plurality of user nodes and Connecting a set of edges of the user node;根据所述社交网络图以所述查询用户标识对应的用户节点为起始点进行搜 索拓展,在每个搜索拓展层中确定一个在所述社交网络图中连接用户节点数量最多的用户节点作为群组成员,直至确定的所述群组成员的数量等于所述群组规模;Searching according to the social network map with the user node corresponding to the query user identifier as a starting point Extending, in each search expansion layer, determining a user node that has the largest number of connected user nodes in the social network map as a group member until the determined number of the group members is equal to the group size;其中,拓展的一级拓展层包括的所述用户节点为所述查询用户的邻接节点,下一级拓展层包括的所述用户节点为上一级拓展层确定的所述群组成员所邻接的用户节点;The user node that is included in the extended first-level extension layer is an adjacent node of the query user, and the user node included in the next-level extension layer is adjacent to the group member determined by the upper-level extension layer. User node将确定的所述群组成员和所述查询用户组成待查找群组;及Forming the determined group member and the querying user into a group to be searched; and判断所述待查找群组的群组核度是否不小于设定的所述群组核度,若是,将所述待查找群组作为查询结果反馈至查询终端显示。Determining whether the group grading of the group to be searched is not less than the set group grading, and if yes, feeding the group to be searched as a query result to the query terminal for display.
- 根据权利要求13所述的服务器,其特征在于,在执行所述响应于所述群组查找请求,调取预先生成的社交网络图,其中,所述社交网络图是根据社交网站中的社交关系数据生成的,所述社交网络图包括多个用户节点和用于连接所述用户节点的边集之后,所述处理器还执行以下步骤:The server according to claim 13, wherein the pre-generated social network map is retrieved in response to the group search request, wherein the social network map is based on a social relationship in a social networking website After the data is generated, the social network map includes a plurality of user nodes and a set of edges for connecting the user nodes, and the processor further performs the following steps:以所述查询用户标识对应的用户节点为根节点构建广度优先搜索树,所述广度优先搜索树从所述查询用户标识开始依次遍历所述社交网络图中所有的用户节点;Constructing a breadth-first search tree with the user node corresponding to the query user identifier as a root node, and the breadth-first search tree sequentially traverses all the user nodes in the social network map from the query user identifier;根据构建的所述广度优先搜索树确定每个用户节点到所述根节点的最短社交距离;Determining a shortest social distance of each user node to the root node according to the constructed breadth-first search tree;计算所述群组规模与每个所述用户节点的最短社交距离的差值,所述差值不大于1的用户节点为剪枝节点,在所述社交网络图中去除所述剪枝节点以及与所述剪枝节点关联的边集,生成剪枝后的社交网络图。Calculating a difference between the group size and a shortest social distance of each of the user nodes, where the user node whose difference is not greater than 1 is a pruning node, and the pruning node is removed in the social network map and A set of edges associated with the pruning node generates a social network map after pruning.
- 根据权利要求14所述的服务器,其特征在于,在执行所述计算所述群组规模与每个所述用户节点的最短社交距离的差值,所述差值不大于1的用户节点为剪枝节点,在所述社交网络图中去除所述剪枝节点以及与所述剪枝节点关联的边集,生成剪枝后的社交网络图之后,所述处理器还执行以下步骤:The server according to claim 14, wherein the calculating a difference between the group size and a shortest social distance of each of the user nodes is performed, and the user node whose difference is not greater than 1 is a cut. a branch node, after removing the pruning node and the edge set associated with the pruning node in the social network map, and after generating the pruned social network map, the processor further performs the following steps:查找剪枝后的所述社交网络图的用户节点中是否存在节点核度小于所述群组核度的用户节点,其中,所述节点核度为所述用户节点所邻接节点的数量,若是,则在剪枝后的社交网络图中去除查找到的所述用户节点,并更新剪枝后 的所述社交网络图。Finding, in the user node of the social network graph after the pruning, whether there is a user node whose node nuclear degree is smaller than the group nuclear degree, wherein the node nuclearity is the number of nodes adjacent to the user node, and if so, Removing the found user node in the pruned social network map and updating the pruning The social network map.
- 根据权利要求13所述的服务器,其特征在于,所述处理器所执行的所述根据所述社交网络图以所述查询用户标识对应的用户节点为起始点进行搜索拓展,在每个搜索拓展层中确定一个在所述社交网络图中连接用户节点数量最多的用户节点作为群组成员,直至确定的所述群组成员的数量等于所述群组规模;The server according to claim 13, wherein the performing, by the processor, the search and expansion according to the user node corresponding to the query user identifier according to the social network map, and expanding in each search Determining, in the layer, a user node that has the largest number of connected user nodes in the social network graph as a group member until the determined number of the group members is equal to the group size;其中,拓展的一级拓展层包括的所述用户节点为所述查询用户的邻接节点,下一级拓展层包括的所述用户节点为上一级拓展层确定的所述群组成员所邻接的用户节点包括:The user node that is included in the extended first-level extension layer is an adjacent node of the query user, and the user node included in the next-level extension layer is adjacent to the group member determined by the upper-level extension layer. User nodes include:在所述社交网络图中定位所述查询用户标识所在的用户节点,并以定位的所述用户节点为起始点进行层级拓展,生成拓展子图的第一拓展层,其中所述第一拓展层包括的用户节点为所述查询用户邻接的用户节点;Positioning the user node where the query user identifier is located in the social network map, and performing hierarchical expansion with the located user node as a starting point, and generating a first expansion layer of the extended sub-picture, where the first expansion layer The included user node is a user node adjacent to the query user;从所述拓展子图的第一拓展层中确定一个群组成员,其中所述群组成员对应的用户节点为在所述社交网络图中邻接节点数量最多的用户节点;Determining a group member from the first extension layer of the extended sub-graph, wherein the user node corresponding to the group member is a user node having the largest number of adjacent nodes in the social network graph;以在所述第一拓展层中的群组成员对应的用户节点为当前起始点进行所述拓展子图的下一级拓展层拓展,并在相应的拓展层中确定新的群组成员,直至确定的所述群组成员的数量等于所述群组规模。Performing, by using a user node corresponding to the group member in the first expansion layer as a current starting point, performing an expansion of the next level of the extended sub-picture, and determining a new group member in the corresponding expansion layer, until The determined number of the group members is equal to the group size.
- 根据权利要求13所述的服务器,其特征在于,确定的所述待查找群组为多个;所述处理器还执行如下步骤:The server according to claim 13, wherein the determined group to be searched is plural; the processor further performs the following steps:根据所述社交网络图确定所述待查找群组中各群组成员之间的边集,根据确定的所述边集以所述群组成员为用户节点构建每个所述待查询群组的群组网络图;Determining, according to the social network map, an edge set between each group member in the to-be-searched group, and constructing, according to the determined edge set, the group member as a user node Group network diagram;计算每个所述群组网络图的亲密度;Calculating the intimacy of each of the group network maps;将亲密度最大的所述群组网络图对应的所述待查找群组作为查询结果反馈至查询终端显示。The to-be-searched group corresponding to the group network map with the highest intimacy is fed back to the query terminal as a query result.
- 根据权利要求17所述的服务器,其特征在于,所述群组网络图的群组亲密度的计算公式为: The server according to claim 17, wherein the group intimacy of the group network map is calculated as:Co(G)=∑(u,v)∈Eω(u,v)Co(G)=∑ (u,v)∈E ω(u,v)其中,Co(G)为群组亲密度,G=(V,E)为群组网络图,V为群组网络图中节点的集合,E为群组网络图中的边集,Co(G) is the group intimacy, G=(V, E) is the group network graph, V is the set of nodes in the group network graph, and E is the edge set in the group network graph.其中N(u)表示节点u的邻居节点集合,节点u和v的共同邻居节点数为|N(u)∩N(v)|。Where N(u) represents the set of neighbor nodes of node u, and the number of common neighbor nodes of nodes u and v is |N(u)∩N(v)|.
- 一个或多个存储有计算机可执行指令的非易失性可读存储介质,所述计算机可执行指令被一个或多个处理器执行,使得所述一个或多个处理器执行以下步骤:One or more non-volatile readable storage media storing computer-executable instructions, the computer-executable instructions being executed by one or more processors, such that the one or more processors perform the steps of:接收查询终端发送的群组查找请求,所述群组查找请求中携带指定包含的查询用户标识、设定的群组规模和群组核度,其中,所述群组核度限定了群组成员邻接其他成员的最少的数量;Receiving a group search request sent by the querying terminal, where the group search request carries a specified query user identifier, a set group size, and a group verification degree, wherein the group nuclearity defines a group member The minimum number of adjacent members;响应于所述群组查找请求,调取预先生成的社交网络图,其中,所述社交网络图是根据社交网站中的社交关系数据生成的,所述社交网络图包括多个用户节点和用于连接所述用户节点的边集;Retrieving a pre-generated social network map in response to the group lookup request, wherein the social network map is generated according to social relationship data in a social networking website, the social network map including a plurality of user nodes and Connecting a set of edges of the user node;根据所述社交网络图以所述查询用户标识对应的用户节点为起始点进行搜索拓展,在每个搜索拓展层中确定一个在所述社交网络图中连接用户节点数量最多的用户节点作为群组成员,直至确定的所述群组成员的数量等于所述群组规模;Performing search expansion based on the user node corresponding to the query user identifier according to the social network map, and determining, in each search expansion layer, a user node that has the largest number of connected user nodes in the social network map as a group a member until the determined number of the group members is equal to the group size;其中,拓展的一级拓展层包括的所述用户节点为所述查询用户的邻接节点,下一级拓展层包括的所述用户节点为上一级拓展层确定的所述群组成员所邻接的用户节点;The user node that is included in the extended first-level extension layer is an adjacent node of the query user, and the user node included in the next-level extension layer is adjacent to the group member determined by the upper-level extension layer. User node将确定的所述群组成员和所述查询用户组成待查找群组;及Forming the determined group member and the querying user into a group to be searched; and判断所述待查找群组的群组核度是否不小于设定的所述群组核度,若是,将所述待查找群组作为查询结果反馈至查询终端显示。Determining whether the group grading of the group to be searched is not less than the set group grading, and if yes, feeding the group to be searched as a query result to the query terminal for display.
- 根据权利要求19所述的非易失性可读存储介质,其特征在于,在执行 所述响应于所述群组查找请求,调取预先生成的社交网络图,其中,所述社交网络图是根据社交网站中的社交关系数据生成的,所述社交网络图包括多个用户节点和用于连接所述用户节点的边集之后,所述处理器还执行以下步骤:A non-volatile readable storage medium according to claim 19, wherein Retrieving a pre-generated social network map in response to the group lookup request, wherein the social network map is generated according to social relationship data in a social networking website, the social network map including a plurality of user nodes and After connecting the edge set of the user node, the processor also performs the following steps:以所述查询用户标识对应的用户节点为根节点构建广度优先搜索树,所述广度优先搜索树从所述查询用户标识开始依次遍历所述社交网络图中所有的用户节点;Constructing a breadth-first search tree with the user node corresponding to the query user identifier as a root node, and the breadth-first search tree sequentially traverses all the user nodes in the social network map from the query user identifier;根据构建的所述广度优先搜索树确定每个用户节点到所述根节点的最短社交距离;Determining a shortest social distance of each user node to the root node according to the constructed breadth-first search tree;计算所述群组规模与每个所述用户节点的最短社交距离的差值,所述差值不大于1的用户节点为剪枝节点,在所述社交网络图中去除所述剪枝节点以及与所述剪枝节点关联的边集,生成剪枝后的社交网络图。Calculating a difference between the group size and a shortest social distance of each of the user nodes, where the user node whose difference is not greater than 1 is a pruning node, and the pruning node is removed in the social network map and A set of edges associated with the pruning node generates a social network map after pruning.
- 根据权利要求20所述的非易失性可读存储介质,其特征在于,在执行所述计算所述群组规模与每个所述用户节点的最短社交距离的差值,所述差值不大于1的用户节点为剪枝节点,在所述社交网络图中去除所述剪枝节点以及与所述剪枝节点关联的边集,生成剪枝后的社交网络图之后,所述处理器还执行以下步骤:The non-volatile readable storage medium according to claim 20, wherein said calculating a difference between said group size and a shortest social distance of each of said user nodes is performed, said difference is not The user node greater than 1 is a pruning node, and after removing the pruning node and the edge set associated with the pruning node in the social network map to generate a pruned social network map, the processor further Perform the following steps:查找剪枝后的所述社交网络图的用户节点中是否存在节点核度小于所述群组核度的用户节点,其中,所述节点核度为所述用户节点所邻接节点的数量,若是,则在剪枝后的社交网络图中去除查找到的所述用户节点,并更新剪枝后的所述社交网络图。Finding, in the user node of the social network graph after the pruning, whether there is a user node whose node nuclear degree is smaller than the group nuclear degree, wherein the node nuclearity is the number of nodes adjacent to the user node, and if so, Then, the found user node is removed in the pruned social network map, and the pruned social network map is updated.
- 根据权利要求19所述的非易失性可读存储介质,其特征在于,所述处理器所执行的所述根据所述社交网络图以所述查询用户标识对应的用户节点为起始点进行搜索拓展,在每个搜索拓展层中确定一个在所述社交网络图中连接用户节点数量最多的用户节点作为群组成员,直至确定的所述群组成员的数量等于所述群组规模;The non-volatile readable storage medium according to claim 19, wherein said searching performed by said processor searches for a user node corresponding to said query user identifier according to said social network map Expanding, determining, in each search expansion layer, a user node that has the largest number of connected user nodes in the social network graph as a group member until the determined number of the group members is equal to the group size;其中,拓展的一级拓展层包括的所述用户节点为所述查询用户的邻接节点,下一级拓展层包括的所述用户节点为上一级拓展层确定的所述群组成员所邻接的用户节点包括: The user node that is included in the extended first-level extension layer is an adjacent node of the query user, and the user node included in the next-level extension layer is adjacent to the group member determined by the upper-level extension layer. User nodes include:在所述社交网络图中定位所述查询用户标识所在的用户节点,并以定位的所述用户节点为起始点进行层级拓展,生成拓展子图的第一拓展层,其中所述第一拓展层包括的用户节点为所述查询用户邻接的用户节点;Positioning the user node where the query user identifier is located in the social network map, and performing hierarchical expansion with the located user node as a starting point, and generating a first expansion layer of the extended sub-picture, where the first expansion layer The included user node is a user node adjacent to the query user;从所述拓展子图的第一拓展层中确定一个群组成员,其中所述群组成员对应的用户节点为在所述社交网络图中邻接节点数量最多的用户节点;Determining a group member from the first extension layer of the extended sub-graph, wherein the user node corresponding to the group member is a user node having the largest number of adjacent nodes in the social network graph;以在所述第一拓展层中的群组成员对应的用户节点为当前起始点进行所述拓展子图的下一级拓展层拓展,并在相应的拓展层中确定新的群组成员,直至确定的所述群组成员的数量等于所述群组规模。Performing, by using a user node corresponding to the group member in the first expansion layer as a current starting point, performing an expansion of the next level of the extended sub-picture, and determining a new group member in the corresponding expansion layer, until The determined number of the group members is equal to the group size.
- 根据权利要求19所述的非易失性可读存储介质,其特征在于,确定的所述待查找群组为多个;所述处理器还执行如下步骤:The non-volatile readable storage medium according to claim 19, wherein the determined group to be searched is plural; the processor further performs the following steps:根据所述社交网络图确定所述待查找群组中各群组成员之间的边集,根据确定的所述边集以所述群组成员为用户节点构建每个所述待查询群组的群组网络图;Determining, according to the social network map, an edge set between each group member in the to-be-searched group, and constructing, according to the determined edge set, the group member as a user node Group network diagram;计算每个所述群组网络图的亲密度;Calculating the intimacy of each of the group network maps;将亲密度最大的所述群组网络图对应的所述待查找群组作为查询结果反馈至查询终端显示。The to-be-searched group corresponding to the group network map with the highest intimacy is fed back to the query terminal as a query result.
- 根据权利要求23所述的非易失性可读存储介质,其特征在于,所述群组网络图的群组亲密度的计算公式为:The non-volatile readable storage medium according to claim 23, wherein the group intimacy of the group network map is calculated as:Co(G)=∑(u,v)∈Eω(u,v)Co(G)=∑ (u,v)∈E ω(u,v)其中,Co(G)为群组亲密度,G=(V,E)为群组网络图,V为群组网络图中节点的集合,E为群组网络图中的边集,Co(G) is the group intimacy, G=(V, E) is the group network graph, V is the set of nodes in the group network graph, and E is the edge set in the group network graph.其中N(u)表示节点u的邻居节点集合,节点u和v的共同邻居节点数为|N(u)∩N(v)|。 Where N(u) represents the set of neighbor nodes of node u, and the number of common neighbor nodes of nodes u and v is |N(u)∩N(v)|.
Priority Applications (5)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
SG11201709902TA SG11201709902TA (en) | 2017-04-07 | 2017-06-28 | Method, device, server and storage medium of searchinhg a group based on social network |
US15/578,407 US10268655B2 (en) | 2016-04-07 | 2017-06-28 | Method, device, server and storage medium of searching a group based on social network |
AU2017268599A AU2017268599B2 (en) | 2017-04-07 | 2017-06-28 | Method, device, server and storage medium of searching a group based on social network |
EP17801323.1A EP3608798A4 (en) | 2017-04-07 | 2017-06-28 | Group search method based on social network, device, server and storage medium |
JP2017568053A JP6608972B2 (en) | 2017-04-07 | 2017-06-28 | Method, device, server, and storage medium for searching for group based on social network |
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710224884.2 | 2016-04-07 | ||
CN201710224884.2A CN107092667B (en) | 2017-04-07 | 2017-04-07 | Group's lookup method and device based on social networks |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2018184305A1 true WO2018184305A1 (en) | 2018-10-11 |
Family
ID=59646366
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2017/090571 WO2018184305A1 (en) | 2016-04-07 | 2017-06-28 | Group search method based on social network, device, server and storage medium |
Country Status (8)
Country | Link |
---|---|
US (1) | US10268655B2 (en) |
EP (1) | EP3608798A4 (en) |
JP (1) | JP6608972B2 (en) |
CN (1) | CN107092667B (en) |
AU (1) | AU2017268599B2 (en) |
SG (1) | SG11201709902TA (en) |
TW (1) | TWI652586B (en) |
WO (1) | WO2018184305A1 (en) |
Families Citing this family (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109271478B (en) * | 2018-09-17 | 2021-07-27 | 华中科技大学 | Knowledge graph data layout method in social network based on BFS forest |
US11074368B2 (en) * | 2018-10-15 | 2021-07-27 | International Business Machines Corporation | Obfuscation and routing of sensitive actions or requests based on social connections |
CN111177578B (en) * | 2019-12-16 | 2022-04-15 | 杭州电子科技大学 | Search method for most influential community around user |
CN112087371B (en) * | 2020-09-10 | 2022-11-18 | 北京百度网讯科技有限公司 | Instant messaging group searching method, device, equipment and storage medium |
CN113190720B (en) * | 2021-05-17 | 2023-01-17 | 深圳计算科学研究院 | Graph compression-based graph database construction method and device and related components |
CN116150507B (en) * | 2023-04-04 | 2023-06-30 | 湖南蚁坊软件股份有限公司 | Water army group identification method, device, equipment and medium |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8135800B1 (en) * | 2006-12-27 | 2012-03-13 | Qurio Holdings, Inc. | System and method for user classification based on social network aware content analysis |
CN103595734A (en) * | 2013-12-02 | 2014-02-19 | 中国科学院信息工程研究所 | On-line social network rapid repairing method based on user associative structure partition |
CN105893382A (en) * | 2014-12-23 | 2016-08-24 | 天津科技大学 | Priori knowledge based microblog user group division method |
Family Cites Families (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7860889B1 (en) * | 2004-05-12 | 2010-12-28 | Cisco Technology, Inc. | Methods and apparatus for redetermining social maps upon expectation of change |
WO2009107416A1 (en) * | 2008-02-27 | 2009-09-03 | 日本電気株式会社 | Graph structure variation detection apparatus, graph structure variation detection method, and program |
US8239364B2 (en) * | 2009-12-08 | 2012-08-07 | Facebook, Inc. | Search and retrieval of objects in a social networking system |
US9350824B2 (en) | 2011-10-08 | 2016-05-24 | Broadcom Corporation | Social device service and support via automatic group association |
US8938512B2 (en) | 2012-09-06 | 2015-01-20 | Facebook, Inc. | Recommending groups to create in a social networking system |
US9053420B2 (en) | 2012-09-25 | 2015-06-09 | Reunify Llc | Methods and systems for scalable group detection from multiple data streams |
US9547877B2 (en) | 2013-10-03 | 2017-01-17 | Linkedin Corporation | Identification of a trigger-type leader in a social network |
CN103838831B (en) * | 2014-02-21 | 2017-02-22 | 东南大学 | On-line social network mass data storage method based on community division |
CN103823888B (en) | 2014-03-07 | 2017-02-08 | 安徽融数信息科技有限责任公司 | Node-closeness-based social network site friend recommendation method |
CN105022761B (en) * | 2014-04-30 | 2020-11-03 | 腾讯科技(深圳)有限公司 | Group searching method and device |
CN104700311B (en) * | 2015-01-30 | 2018-02-06 | 福州大学 | A kind of neighborhood in community network follows community discovery method |
CN104731962B (en) | 2015-04-03 | 2018-10-12 | 重庆邮电大学 | Friend recommendation method and system based on similar corporations in a kind of social networks |
-
2017
- 2017-04-07 CN CN201710224884.2A patent/CN107092667B/en active Active
- 2017-06-28 JP JP2017568053A patent/JP6608972B2/en active Active
- 2017-06-28 EP EP17801323.1A patent/EP3608798A4/en not_active Withdrawn
- 2017-06-28 US US15/578,407 patent/US10268655B2/en active Active
- 2017-06-28 SG SG11201709902TA patent/SG11201709902TA/en unknown
- 2017-06-28 WO PCT/CN2017/090571 patent/WO2018184305A1/en active Application Filing
- 2017-06-28 AU AU2017268599A patent/AU2017268599B2/en active Active
- 2017-11-30 TW TW106141990A patent/TWI652586B/en active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8135800B1 (en) * | 2006-12-27 | 2012-03-13 | Qurio Holdings, Inc. | System and method for user classification based on social network aware content analysis |
CN103595734A (en) * | 2013-12-02 | 2014-02-19 | 中国科学院信息工程研究所 | On-line social network rapid repairing method based on user associative structure partition |
CN105893382A (en) * | 2014-12-23 | 2016-08-24 | 天津科技大学 | Priori knowledge based microblog user group division method |
Also Published As
Publication number | Publication date |
---|---|
AU2017268599B2 (en) | 2019-11-21 |
US10268655B2 (en) | 2019-04-23 |
TW201837749A (en) | 2018-10-16 |
CN107092667B (en) | 2018-02-27 |
CN107092667A (en) | 2017-08-25 |
TWI652586B (en) | 2019-03-01 |
AU2017268599A1 (en) | 2018-10-25 |
SG11201709902TA (en) | 2018-11-29 |
EP3608798A4 (en) | 2020-11-11 |
JP6608972B2 (en) | 2019-11-20 |
JP2019513245A (en) | 2019-05-23 |
US20180300413A1 (en) | 2018-10-18 |
EP3608798A1 (en) | 2020-02-12 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2018184305A1 (en) | Group search method based on social network, device, server and storage medium | |
US10289643B2 (en) | Automatic discovery of popular landmarks | |
WO2019200714A1 (en) | Server connection method, computer readable storage medium, terminal device, and apparatus | |
US20160232179A1 (en) | Recommending points of interests in a region | |
WO2018010491A1 (en) | Method and device for generating service path | |
CN110059264B (en) | Site retrieval method, equipment and computer storage medium based on knowledge graph | |
WO2019205373A1 (en) | Similar user search apparatus and method, and computer readable storage medium | |
US10191998B1 (en) | Methods of data reduction for parallel breadth-first search over graphs of connected data elements | |
WO2016070751A1 (en) | Distributed cache range querying method, device, and system | |
US9754015B2 (en) | Feature rich view of an entity subgraph | |
WO2013138441A1 (en) | Systems, methods, and software for computing reachability in large graphs | |
WO2022247868A1 (en) | Multi-sub-graph matching method, apparatus and device | |
WO2018227773A1 (en) | Place recommendation method and apparatus, computer device, and storage medium | |
WO2019072038A1 (en) | Information generation method and device | |
CN111159577A (en) | Community division method and device, storage medium and electronic device | |
CN113282799B (en) | Node operation method, node operation device, computer equipment and storage medium | |
CN111858613B (en) | Service data retrieval method | |
WO2013097065A1 (en) | Index data processing method and device | |
JP2017530477A (en) | System and method for processing graphs | |
CN114897666A (en) | Graph data storage, access, processing method, training method, device and medium | |
CN110555158A (en) | mutually exclusive data processing method and system, and computer readable storage medium | |
CN110909097B (en) | Polygonal electronic fence generation method and device, computer equipment and storage medium | |
CN114048219A (en) | Graph database updating method and device | |
WO2021036190A1 (en) | Node layout determination method and apparatus | |
CN110297818B (en) | Method and device for constructing data warehouse |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
WWE | Wipo information: entry into national phase |
Ref document number: 15578407 Country of ref document: US |
|
ENP | Entry into the national phase |
Ref document number: 2017568053 Country of ref document: JP Kind code of ref document: A |
|
ENP | Entry into the national phase |
Ref document number: 2017268599 Country of ref document: AU Date of ref document: 20170628 Kind code of ref document: A |
|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 17801323 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |