• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

LearnLib / automatalib / 13100258666

02 Feb 2025 03:46PM UTC coverage: 92.108% (+0.1%) from 92.01%
13100258666

push

github

mtf90
provide some default methods for {Mutable,]ProbabilisticMealy

including tests

4 of 4 new or added lines in 2 files covered. (100.0%)

18 existing lines in 7 files now uncovered.

16609 of 18032 relevant lines covered (92.11%)

1.7 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

90.91
/core/src/main/java/net/automatalib/graph/impl/CompactGraph.java
1
/* Copyright (C) 2013-2025 TU Dortmund University
2
 * This file is part of AutomataLib <https://automatalib.net>.
3
 *
4
 * Licensed under the Apache License, Version 2.0 (the "License");
5
 * you may not use this file except in compliance with the License.
6
 * You may obtain a copy of the License at
7
 *
8
 *     http://www.apache.org/licenses/LICENSE-2.0
9
 *
10
 * Unless required by applicable law or agreed to in writing, software
11
 * distributed under the License is distributed on an "AS IS" BASIS,
12
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
 * See the License for the specific language governing permissions and
14
 * limitations under the License.
15
 */
16
package net.automatalib.graph.impl;
17

18
import net.automatalib.graph.base.AbstractCompactGraph;
19
import net.automatalib.graph.base.SimpleEdge;
20

21
/**
22
 * A compact graph representation that only stores adjacency information.
23
 */
24
public class CompactGraph extends AbstractCompactGraph<SimpleEdge, Void, Void> {
25

26
    public CompactGraph() {
2✔
27
        // default constructor
28
    }
2✔
29

30
    public CompactGraph(int initialCapacity) {
31
        super(initialCapacity);
2✔
32
    }
2✔
33

34
    @Override
35
    protected SimpleEdge createEdge(int source, int target, Void property) {
36
        return new SimpleEdge(target);
2✔
37
    }
38

39
    @Override
40
    public Void getNodeProperty(int node) {
41
        return null;
2✔
42
    }
43

44
    @Override
UNCOV
45
    public void setNodeProperty(int node, Void property) {}
×
46

47
    @Override
48
    public void setEdgeProperty(SimpleEdge edge, Void property) {}
2✔
49

50
    @Override
51
    public Void getEdgeProperty(SimpleEdge edge) {
52
        return null;
2✔
53
    }
54

55
    public SimpleEdge connect(Integer source, Integer target) {
56
        return super.connect(source, target, null);
1✔
57
    }
58

59
    public SimpleEdge connect(int source, int target) {
60
        return super.connect(source, target, null);
1✔
61
    }
62
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc