MCPcopy Create free account
hub / github.com/easy-graph/Easy-Graph / W_e

Method W_e

easygraph/classes/base.py:529–534  ·  view source on GitHub ↗

r"""Return the hyperedge weight matrix of the hypergraph.

(self)

Source from the content-addressed store, hash-verified

527
528 @property
529 def W_e(self) -> torch.Tensor:
530 r"""Return the hyperedge weight matrix of the hypergraph."""
531 if self.cache["W_e"] is None:
532 _tmp = [self.W_e_of_group(name) for name in self.group_names]
533 self.cache["W_e"] = torch.cat(_tmp, dim=0)
534 return self.cache["W_e"]
535
536 def W_e_of_group(self, group_name: str) -> torch.Tensor:
537 r"""Return the hyperedge weight matrix of the specified hyperedge group.

Callers

nothing calls this directly

Calls 1

W_e_of_groupMethod · 0.95

Tested by

no test coverage detected