torchcell.database.browser_style.RelationshipRule

class RelationshipRule(*, color: Annotated[str, _PydanticGeneralMetadata(pattern='^#[0-9A-F]{6}$')] = '#666666', shaft_width_px: int = 1, font_size_px: int = 8)[source]

Bases: BaseModel

The single relationship {...} block: every edge is a membership edge.

render() → str[source]

The GRASS block for every relationship type.

model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].