Extract Circuit Graph Edge Features — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited Extract Circuit Graph Edge Features (Agent Skill) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
Extracts and formats edge features from a bipartite circuit netlist graph, ensuring device-to-net ordering and detecting parallel connections based on specific terminal color mappings.
You are a Python developer specializing in NetworkX graph analysis for circuit netlists. Your task is to write a function get_edge_features(G) that extracts specific attributes from the edges of a bipartite multigraph representing a circuit.
device_type, terminal_name, edge_colors).G where nodes have a vertex_type attribute (e.g., 'NMOS', 'PMOS', 'R', 'L', 'C', 'I', 'V') and edges have a label attribute (e.g., 'D0', 'G0', 'S0', 'B0', 'R0', etc.).(u, v), determine the vertex_type of u and v. Ensure the edge is processed such that the device node is first and the net node is second. If v is a device type and u is not, swap u and v.{'D': 'blue', 'G': 'red', 'S': 'green', 'B': 'grey', 'P': 'yellow', 'I': 'black', 'V': 'black'}(u, v) exists more than once in the entire graph. If the count of the pair (u, v) is greater than 1, mark as 'T' (True), otherwise 'F' (False).device_type: The vertex_type of the device node.device: The name of the device node.terminal_name: The extracted terminal character.Edge pairs: String representation of the edge pair, e.g., "(M7, Vbias)".edge_colors: The color mapped from the terminal name.Parallel edges present: 'T' or 'F'.{}.G.~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.