Wolfram Language Paclet Repository

Community-contributed installable additions to the Wolfram Language

Primary Navigation

    • Cloud & Deployment
    • Core Language & Structure
    • Data Manipulation & Analysis
    • Engineering Data & Computation
    • External Interfaces & Connections
    • Financial Data & Computation
    • Geographic Data & Computation
    • Geometry
    • Graphs & Networks
    • Higher Mathematical Computation
    • Images
    • Knowledge Representation & Natural Language
    • Machine Learning
    • Notebook Documents & Presentation
    • Scientific and Medical Data & Computation
    • Social, Cultural & Linguistic Data
    • Strings & Text
    • Symbolic & Numeric Computation
    • System Operation & Setup
    • Time-Related Computation
    • User Interface Construction
    • Visualization & Graphics
    • Random Paclet
    • Alphabetical List
  • Using Paclets
    • Get Started
    • Download Definition Notebook
  • Learn More about Wolfram Language

NetworkXLink

Guides

  • Overview
  • Algorithms
  • Random Graphs

Symbols

  • WolframExternalFunctions`NetworkXLink`RandomGraph
  • AllNodeCuts
  • ApproximateCurrentFlowBetweennessCentrality
  • AsynchronousFluidCommunities
  • AsynchronousLPACommunities
  • AttractingComponents
  • BetweennessCentralitySubset
  • BiadjacencyMatrix
  • Bipartite$AverageClustering
  • Bipartite$BetweennessCentrality
  • Bipartite$ClosenessCentrality
  • Bipartite$Clustering
  • Bipartite$ConfigurationModel
  • Bipartite$DegreeCentrality
  • Bipartite$Density
  • CollaborationWeightedProjectedGraph
  • Color
  • CommunicabilityBetweennessCentrality
  • Communicability
  • CompleteToChordalGraph
  • CoreNumber
  • CurrentFlowBetweennessCentrality
  • CurrentFlowBetweennessCentralitySubset
  • CurrentFlowClosenessCentrality
  • DegreeMixingMatrix
  • DirectedJointDegreeGraph
  • Dispersion
  • DualBarabasiAlbertGraph
  • DuplicationDivergenceGraph
  • EdgeBetweennessCentralitySubset
  • EdgeCurrentFlowBetweennessCentrality
  • EdgeCurrentFlowBetweennessCentralitySubset
  • EquitableColor
  • ExpectedDegreeGraph
  • ExtendedBarabasiAlbertGraph
  • FindAsteroidalTriple
  • FindInducedNodes
  • FromBiadjacencyMatrix
  • GaussianRandomPartitionGraph
  • GeneralizedDegree
  • GeneralRandomIntersectionGraph
  • GeographicalThresholdGraph
  • GlobalReachingCentrality
  • GNCGraph
  • GNGraph
  • GnmkRandomGraph
  • GNRGraph
  • GreedyColor
  • GroupBetweennessCentrality
  • GroupByAnnotation
  • GroupClosenessCentrality
  • GroupDegreeCentrality
  • GroupInDegreeCentrality
  • GroupOutDegreeCentrality
  • HarmonicCentrality
  • IncrementalClosenessCentrality
  • InterCommunityEdges
  • IntraCommunityEdges
  • IsAsteroidalTripleFree
  • IsAttractingComponent
  • IsBipartiteNodeSet
  • IsChordal
  • IsPartition
  • IsSemiconnected
  • JointDegreeGraph
  • KComponents
  • KCorona
  • KCrust
  • KEdgeAugmentation
  • KernighanLinBisection
  • KRandomIntersectionGraph
  • KShell
  • KTruss
  • LabelPropagationCommunities
  • LFRBenchmarkGraph
  • LocalReachingCentrality
  • LukesPartitioning
  • MakeMaxCliqueGraph
  • MinimumWeightFullMatching
  • MinWeightedDominatingSet
  • MoralGraph
  • NavigableSmallWorldGraph
  • NodeRedundancy
  • OnionLayers
  • OnionSpectrum
  • OverlapWeightedProjectedGraph
  • PartialDuplicationGraph
  • PartitionQuality
  • PercolationCentrality
  • PlantedPartitionGraph
  • PowerLawClusterGraph
  • PreferentialAttachmentGraph
  • ProjectedGraph
  • ProminentGroup
  • PythonSeedRandom
  • PythonSession
  • RandomClusteredGraph
  • RandomCograph
  • RandomInternetASGraph
  • RandomKOutGraph
  • RandomLobster
  • RandomPartitionGraph
  • RandomPowerLawTree
  • RandomRegularGraph
  • RandomShellGraph
  • RelaxedCavemanGraph
  • RobinsAlexanderClustering
  • ScaleFreeGraph
  • SecondOrderCentrality
  • Sets
  • SpectralBipartivity
  • SpectralGraphForge
  • SquareClustering
  • SteinerTree
  • StochasticBlockModel
  • SubgraphCentrality
  • TravelingSalesmanProblem
  • TreewidthDecomposition
  • TrophicIncoherenceParameter
  • TrophicLevels
  • UniformRandomIntersectionGraph
  • UsePythonSession
  • VoteRank
  • WeightedProjectedGraph
WolframExternalFunctions`NetworkXLink`
Bipartite$DegreeCentrality
​
Bipartite$DegreeCentrality
[g,{
v
1
,
v
2
,…}]
computes the degree centrality for vertices in a bipartite network
g
with vertices in one of the bipartite sets
{
v
1
,
v
2
,…}
.
​
Details

Examples  
(1)
Basic Examples  
(1)
Create a random bipartite graph:
In[1]:=
g=nx`RandomGraph[3,5,.4,"Seed"123,VertexLabelsAutomatic,GraphLayout"BipartiteEmbedding"]
Out[1]=
Compute bipartite degree centralities:
In[2]:=
Bipartite$DegreeCentrality
[g,{0,1,2}]
Out[2]=
00.8,10.2,20.6,30.666667,40.333333,50.333333,60.666667,70.666667
Highlight:
In[3]:=
HighlightGraph[g,Keys[%],VertexSizeNormal[%]]
Out[3]=
Reorder keys in the association:
In[4]:=
%%//KeySort
Out[4]=
00.8,10.2,20.6,30.666667,40.333333,50.333333,60.666667,70.666667
Compare with the generic unipartite degree centralities:
In[5]:=
AssociationThread[VertexList[g]DegreeCentrality[g]]
Out[5]=
04,11,23,32,41,51,62,72
SeeAlso
DegreeCentrality
▪
Bipartite$BetweennessCentrality
▪
Bipartite$ClosenessCentrality
RelatedLinks
▪
NetworkX
""

© 2025 Wolfram. All rights reserved.

  • Legal & Privacy Policy
  • Contact Us
  • WolframAlpha.com
  • WolframCloud.com