apaGraph.Text.WordEdgeList(text, DoApplyLemmatization)
Excel
=apaGraph.Text.WordEdgeList(text, DoApplyLemmatization)Result
Builds a word co-occurrence graph from raw text and returns a three-column edge list: source index, target index and weight. The weight is a distance, not a similarity.
Syntax
text: raw input text
DoApplyLemmatization: TRUE to apply lemmatization, FALSE otherwise
Related functions
apaGraph.AdjacencyMatrix.FromEdgesDerives the adjacency matrix of a graph from an edge list.apaGraph.AdjacencyMatrix.FromIncidenceMatrixDerives the adjacency matrix of a graph from an incidence matrix.apaGraph.AdjacencyMatrix.ToSimilaritiesConverts an adjacency matrix into a similarity matrix.apaGraph.BetweennessCentrality.FromEdgesCalculates the betweenness centrality of the nodes of an undirected graph, weighted or unweighted, with Brandes’ algorithm.apaGraph.Centralization.Freeman.FromEdgesCalculates Freeman’s centralization measure of a graph defined by an edge list.apaGraph.ClosenessCentrality.FromEdgesCalculates the closeness centrality of all nodes (vertices) of a graph defined by an edge list.apaGraph.Communities.CommunityAdjacencyMatrixReturns the community adjacency matrix induced by a node-level graph and a community assignment.apaGraph.Communities.CommunityAggregationMatrixReturns the binary community aggregation matrix P, with communities in rows and nodes in columns.apaGraph.Communities.GirvanNewman.ModularityPathReturns the Girvan-Newman modularity path of a graph or MST.apaGraph.Communities.GirvanNewmanIdentifies Girvan-Newman communities.apaGraph.Communities.GirvanNewman.NIdentifies Girvan-Newman communities for a fixed number of communities N.apaGraph.Communities.CommunityGraphReturns the community graph induced by a node-level graph and a community assignment.apaGraph.Communities.GreedyAgglomerativeReturns greedy agglomerative modularity communities.apaGraph.Communities.GreedyAgglomerative.NReturns greedy agglomerative modularity communities for a fixed number of communities N.apaGraph.Communities.GreedyAgglomerative.ModularityPathReturns the greedy agglomerative modularity path.apaGraph.Communities.CommunityLaplacianReturns the community Laplacian matrix L = D - A induced by a node-level graph and a community assignment, where A is the community adjacency matrix and D the diagonal matrix of community degrees.apaGraph.Communities.CommunityLaplacian.LiftedReturns the lifted community Laplacian matrix P' * Lc * P in node (asset) space, where Lc is the community Laplacian and P the community aggregation matrix.apaGraph.DegreeCentrality.FromEdgesCalculates the degree centrality of all nodes (vertices) of a graph defined by an edge list.apaGraph.DegreeMatrixDerives the degree matrix from a distance (or similarity) matrix.apaGraph.EccentricityCalculates the eccentricity of each node of a graph, i.e. the largest shortest distance of the node to any other node.apaGraph.Edges.FromAdjacencyMatrixDerives the edge list of a graph from an adjacency matrix.apaGraph.Edges.FromClusteringResultConverts the result of a hierarchical clustering algorithm into an edge list.apaGraph.Edges.FromDistanceMatrixDerives the edge list of a complete graph from a distance matrix.apaGraph.Edges.FromIncidenceMatrixDerives the edge list of a graph from an incidence matrix.apaGraph.Edges.RandomGenerates a random graph and returns it as an m x 3 edge list: node i, node j (1-based, i < j, sorted by i and then j) and the distance between the two nodes.apaGraph.EdgeThinning.BuildReturns an edge list derived from the following thinning algorithm: start with all edges, sort them by distance (largest first), and delete an edge unless the deletion disconnects the graph. 100%…apaGraph.EigenvectorCentrality.FromEdgesCalculates the eigenvector centrality (Bonacich power centrality) of all nodes (vertices) of a graph defined by an edge list.apaGraph.Fiedler.ValueReturns the Fiedler value, i.e. the second smallest eigenvalue of the Laplacian matrix (algebraic connectivity).apaGraph.Fiedler.VectorReturns the Fiedler vector, i.e. the eigenvector belonging to the second smallest eigenvalue of the Laplacian matrix.apaGraph.IncidenceMatrix.FromAdjacencyMatrixDerives the incidence matrix of a graph from an adjacency matrix.apaGraph.IncidenceMatrix.FromEdgesDerives the incidence matrix of a graph from an edge list.apaGraph.IsCompleteChecks whether a graph is connected, i.e. whether every node can be reached from every other node.apaGraph.kNN.BuildReturns the edge list of the k-nearest-neighbor (kNN) graph at the smallest k at which the graph is connected, or that k.apaGraph.kNN.Build.KReturns the edge list of the k-nearest-neighbor (kNN) graph for a given k.apaGraph.LaplacianMatrixReturns the Laplacian matrix of a graph, also known as Kirchhoff matrix, from an adjacency matrix.apaGraph.LaplacianMatrix.RWReturns the random walk (or left) normalized Laplacian matrix of a graph from an adjacency matrix.apaGraph.LaplacianMatrix.SymReturns the symmetric normalized Laplacian matrix of a graph from an adjacency matrix.apaGraph.Layout.CircularCircular layout of a graph defined by an edge list.apaGraph.Layout.ForceAtlas2ForceAtlas2 layout of an edge list.apaGraph.Layout.ForceAtlas2.AllParamsForceAtlas2 layout of an edge list with an extended parameter set.
